Skip to content

Commit

Permalink
chore: cleanup cli directory structure (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaladinlight authored Jul 16, 2024
1 parent ef2c5d0 commit c149033
Show file tree
Hide file tree
Showing 18 changed files with 8 additions and 8 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions scripts/hotWalletCli/package.json → cli/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"name": "hot-wallet-cli",
"name": "rfox-cli",
"version": "1.0.0",
"type": "module",
"exports": "./index.js",
"exports": "./src/index.js",
"engines": {
"node": ">=18"
},
"license": "MIT",
"scripts": {
"clean": "rm -rf node_modules",
"generate": "yarn wagmi generate",
"start": "tsx index.ts"
"start": "tsx src/index.ts"
},
"dependencies": {
"@inquirer/core": "^8.2.2",
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion scripts/hotWalletCli/client.ts → cli/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import BigNumber from 'bignumber.js'
import ora, { Ora } from 'ora'
import { Address, PublicClient, createPublicClient, getAddress, getContract, http } from 'viem'
import { arbitrum } from 'viem/chains'
import { stakingV1Abi } from '../generated/abi'
import { RFOX_REWARD_RATE } from './constants'
import { stakingV1Abi } from './generated/abi'
import { error, info, warn } from './logging'
import { RewardDistribution } from './types'

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion scripts/hotWalletCli/index.ts → cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import BigNumber from 'bignumber.js'
import fs from 'node:fs'
import path from 'node:path'
import ora from 'ora'
import { Epoch } from './types'
import { Client } from './client'
import { MONTHS, RFOX_DIR } from './constants'
import { isEpochDistributionStarted } from './file'
import { IPFS } from './ipfs'
import { error, info, success, warn } from './logging'
import { create, recoverKeystore } from './mnemonic'
import { Epoch } from './types'
import { Wallet } from './wallet'

const processEpoch = async () => {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion scripts/hotWalletCli/wallet.ts → cli/src/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export class Wallet {
success(`Unsigned funding transaction created (${unsignedTxFile})`)

info(
`Follow the steps for signing and broadcasting the funding transaction as detailed here: https://github.com/shapeshift/rFOX/blob/main/scripts/hotWalletCli/MultiSig.md`,
'Follow the steps for signing and broadcasting the funding transaction as detailed here: https://github.com/shapeshift/rFOX/blob/main/cli/MultiSig.md',
)

const spinner = ora('Waiting for hot wallet to be funded...').start()
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineConfig } from '@wagmi/cli'
import { foundry, FoundryConfig } from '@wagmi/cli/plugins'

const foundryConfig: FoundryConfig = {
project: '../../foundry',
project: '../foundry',
artifacts: 'out',
include: ['StakingV1.json'],
}
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"typescript": "^5.4.5"
},
"scripts": {
"build": "forge build --root foundry && cd scripts/hotWalletCli && yarn && yarn generate",
"build": "forge build --root foundry && cd cli && yarn && yarn generate",
"lint:sol": "npx prettier --write --plugin=prettier-plugin-solidity foundry/src/**/*.sol foundry/test/**/*.t.sol"
},
"simple-git-hooks": {
Expand Down

0 comments on commit c149033

Please sign in to comment.