Skip to content

Commit

Permalink
Merge pull request #2636 from OffchainLabs/remove-ipfs-support
Browse files Browse the repository at this point in the history
[Config Change] Remove IPFS support
  • Loading branch information
tsahee authored Oct 9, 2024
2 parents 9eee233 + 1166ccd commit a48e7d9
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 526 deletions.
27 changes: 10 additions & 17 deletions cmd/conf/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,23 +52,19 @@ func (c *ParentChainConfig) Validate() error {
}

type L2Config struct {
ID uint64 `koanf:"id"`
Name string `koanf:"name"`
InfoFiles []string `koanf:"info-files"`
InfoJson string `koanf:"info-json"`
DevWallet genericconf.WalletConfig `koanf:"dev-wallet"`
InfoIpfsUrl string `koanf:"info-ipfs-url"`
InfoIpfsDownloadPath string `koanf:"info-ipfs-download-path"`
ID uint64 `koanf:"id"`
Name string `koanf:"name"`
InfoFiles []string `koanf:"info-files"`
InfoJson string `koanf:"info-json"`
DevWallet genericconf.WalletConfig `koanf:"dev-wallet"`
}

var L2ConfigDefault = L2Config{
ID: 0,
Name: "",
InfoFiles: []string{}, // Default file used is chaininfo/arbitrum_chain_info.json, stored in DefaultChainInfo in chain_info.go
InfoJson: "",
DevWallet: genericconf.WalletConfigDefault,
InfoIpfsUrl: "",
InfoIpfsDownloadPath: "/tmp/",
ID: 0,
Name: "",
InfoFiles: []string{}, // Default file used is chaininfo/arbitrum_chain_info.json, stored in DefaultChainInfo in chain_info.go
InfoJson: "",
DevWallet: genericconf.WalletConfigDefault,
}

func L2ConfigAddOptions(prefix string, f *flag.FlagSet) {
Expand All @@ -79,9 +75,6 @@ func L2ConfigAddOptions(prefix string, f *flag.FlagSet) {

// Dev wallet does not exist unless specified
genericconf.WalletConfigAddOptions(prefix+".dev-wallet", f, "")
f.String(prefix+".info-ipfs-url", L2ConfigDefault.InfoIpfsUrl, "url to download chain info file")
f.String(prefix+".info-ipfs-download-path", L2ConfigDefault.InfoIpfsDownloadPath, "path to save temp downloaded file")

}

func (c *L2Config) ResolveDirectoryNames(chain string) {
Expand Down
281 changes: 0 additions & 281 deletions cmd/ipfshelper/ipfshelper.bkup_go

This file was deleted.

31 changes: 0 additions & 31 deletions cmd/ipfshelper/ipfshelper_stub.go

This file was deleted.

Loading

0 comments on commit a48e7d9

Please sign in to comment.