Skip to content

Commit

Permalink
fix: remove legacy factory address (#382)
Browse files Browse the repository at this point in the history
  • Loading branch information
acha-bill authored Feb 6, 2024
1 parent d1ef50e commit 3b2d075
Show file tree
Hide file tree
Showing 7 changed files with 96 additions and 103 deletions.
1 change: 0 additions & 1 deletion config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ bee-configs:
swap-enable: true
swap-endpoint: "ws://geth-swap.geth-swap:8546"
swap-factory-address: "0x09ad42a7d020244920309ffa14ea376dd2d3b7d5"
swap-legacy-factory-addresses: "0x657241f4494a2f15ba75346e691d753a978c72df"
swap-initial-deposit: 500000000000000000
tracing-enabled: true
tracing-endpoint: "tempo-tempo-distributed-distributor.observability:6831"
Expand Down
1 change: 0 additions & 1 deletion config/local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ bee-configs:
swap-enable: true
swap-endpoint: "ws://geth-swap:8546"
swap-factory-address: "0x09ad42a7d020244920309ffa14ea376dd2d3b7d5"
swap-legacy-factory-addresses: "0x657241f4494a2f15ba75346e691d753a978c72df"
swap-initial-deposit: 500000000000000000
verbosity: 5
welcome-message: "Welcome to the Swarm, this is a local cluster!"
Expand Down
1 change: 0 additions & 1 deletion config/testnet-giant.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ bee-configs:
swap-enable: true
swap-endpoint: "ws://private-goerli-geth.private-goerli-geth:8546"
swap-factory-address: ""
swap-legacy-factory-addresses: ""
swap-initial-deposit: 10000000000000000
tracing-enabled: false
tracing-endpoint: "tempo-tempo-distributed-distributor.observability:6831"
Expand Down
1 change: 0 additions & 1 deletion config/testnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ bee-configs:
swap-enable: true
swap-endpoint: "ws://private-goerli-geth.private-goerli-geth:8546"
swap-factory-address: ""
swap-legacy-factory-addresses: ""
swap-initial-deposit: 10000000000000000
tracing-enabled: false
tracing-endpoint: "tempo-tempo-distributed-distributor.observability:6831"
Expand Down
97 changes: 48 additions & 49 deletions pkg/config/bee.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,55 +12,54 @@ type BeeConfig struct {
// parent to inherit settings from
*Inherit `yaml:",inline"`
// Bee configuration
AllowPrivateCIDRs *bool `yaml:"allow-private-cidrs"`
APIAddr *string `yaml:"api-addr"`
BlockTime *uint64 `yaml:"block-time"`
Bootnodes *string `yaml:"bootnodes"`
BootnodeMode *bool `yaml:"bootnode-mode"`
CacheCapacity *uint64 `yaml:"cache-capacity"`
ClefSignerEnable *bool `yaml:"clef-signer-enable"`
ClefSignerEndpoint *string `yaml:"clef-signer-endpoint"`
CORSAllowedOrigins *string `yaml:"cors-allowed-origins"`
DataDir *string `yaml:"data-dir"`
DbOpenFilesLimit *int `yaml:"db-open-files-limit"`
DbBlockCacheCapacity *int `yaml:"db-block-cache-capacity"`
DbWriteBufferSize *int `yaml:"db-write-buffer-size"`
DbDisableSeeksCompaction *bool `yaml:"db-disable-seeks-compaction"`
DebugAPIAddr *string `yaml:"debug-api-addr"`
DebugAPIEnable *bool `yaml:"debug-api-enable"`
FullNode *bool `yaml:"full-node"`
NATAddr *string `yaml:"nat-addr"`
Mainnet *bool `yaml:"mainnet"`
NetworkID *uint64 `yaml:"network-id"`
P2PAddr *string `yaml:"p2p-addr"`
P2PWSEnable *bool `yaml:"pwp-ws-enable"`
Password *string `yaml:"password"`
PaymentEarly *uint64 `yaml:"payment-early-percent"`
PaymentThreshold *uint64 `yaml:"payment-threshold"`
PaymentTolerance *uint64 `yaml:"payment-tolerance-percent"`
PostageStampAddress *string `yaml:"postage-stamp-address"`
PostageContractStartBlock *uint64 `yaml:"postage-stamp-start-block"`
PriceOracleAddress *string `yaml:"price-oracle-address"`
RedistributionAddress *string `yaml:"redistribution-address"`
StakingAddress *string `yaml:"staking-address"`
StorageIncentivesEnable *string `yaml:"storage-incentives-enable"`
ResolverOptions *string `yaml:"resolver-options"`
Restricted *bool `yaml:"restricted"`
TokenEncryptionKey *string `yaml:"token-encryption-key"`
AdminPassword *string `yaml:"admin-password"`
ChequebookEnable *bool `yaml:"chequebook-enable"`
SwapEnable *bool `yaml:"swap-enable"`
SwapEndpoint *string `yaml:"swap-endpoint"`
SwapDeploymentGasPrice *string `yaml:"swap-deployment-gas-price"`
SwapFactoryAddress *string `yaml:"swap-factory-address"`
SwapLegacyFactoryAddresses *string `yaml:"swap-legacy-factory-addresses"`
SwapInitialDeposit *uint64 `yaml:"swap-initial-deposit"`
TracingEnabled *bool `yaml:"tracing-enabled"`
TracingEndpoint *string `yaml:"tracing-endpoint"`
TracingServiceName *string `yaml:"tracing-service-name"`
Verbosity *uint64 `yaml:"verbosity"`
WelcomeMessage *string `yaml:"welcome-message"`
WarmupTime *time.Duration `yaml:"warmup-time"`
AllowPrivateCIDRs *bool `yaml:"allow-private-cidrs"`
APIAddr *string `yaml:"api-addr"`
BlockTime *uint64 `yaml:"block-time"`
Bootnodes *string `yaml:"bootnodes"`
BootnodeMode *bool `yaml:"bootnode-mode"`
CacheCapacity *uint64 `yaml:"cache-capacity"`
ClefSignerEnable *bool `yaml:"clef-signer-enable"`
ClefSignerEndpoint *string `yaml:"clef-signer-endpoint"`
CORSAllowedOrigins *string `yaml:"cors-allowed-origins"`
DataDir *string `yaml:"data-dir"`
DbOpenFilesLimit *int `yaml:"db-open-files-limit"`
DbBlockCacheCapacity *int `yaml:"db-block-cache-capacity"`
DbWriteBufferSize *int `yaml:"db-write-buffer-size"`
DbDisableSeeksCompaction *bool `yaml:"db-disable-seeks-compaction"`
DebugAPIAddr *string `yaml:"debug-api-addr"`
DebugAPIEnable *bool `yaml:"debug-api-enable"`
FullNode *bool `yaml:"full-node"`
NATAddr *string `yaml:"nat-addr"`
Mainnet *bool `yaml:"mainnet"`
NetworkID *uint64 `yaml:"network-id"`
P2PAddr *string `yaml:"p2p-addr"`
P2PWSEnable *bool `yaml:"pwp-ws-enable"`
Password *string `yaml:"password"`
PaymentEarly *uint64 `yaml:"payment-early-percent"`
PaymentThreshold *uint64 `yaml:"payment-threshold"`
PaymentTolerance *uint64 `yaml:"payment-tolerance-percent"`
PostageStampAddress *string `yaml:"postage-stamp-address"`
PostageContractStartBlock *uint64 `yaml:"postage-stamp-start-block"`
PriceOracleAddress *string `yaml:"price-oracle-address"`
RedistributionAddress *string `yaml:"redistribution-address"`
StakingAddress *string `yaml:"staking-address"`
StorageIncentivesEnable *string `yaml:"storage-incentives-enable"`
ResolverOptions *string `yaml:"resolver-options"`
Restricted *bool `yaml:"restricted"`
TokenEncryptionKey *string `yaml:"token-encryption-key"`
AdminPassword *string `yaml:"admin-password"`
ChequebookEnable *bool `yaml:"chequebook-enable"`
SwapEnable *bool `yaml:"swap-enable"`
SwapEndpoint *string `yaml:"swap-endpoint"`
SwapDeploymentGasPrice *string `yaml:"swap-deployment-gas-price"`
SwapFactoryAddress *string `yaml:"swap-factory-address"`
SwapInitialDeposit *uint64 `yaml:"swap-initial-deposit"`
TracingEnabled *bool `yaml:"tracing-enabled"`
TracingEndpoint *string `yaml:"tracing-endpoint"`
TracingServiceName *string `yaml:"tracing-service-name"`
Verbosity *uint64 `yaml:"verbosity"`
WelcomeMessage *string `yaml:"welcome-message"`
WarmupTime *time.Duration `yaml:"warmup-time"`
}

// Export exports BeeConfig to orchestration.Config
Expand Down
1 change: 0 additions & 1 deletion pkg/orchestration/k8s/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ swap-enable: {{.SwapEnable}}
swap-endpoint: {{.SwapEndpoint}}
swap-deployment-gas-price: {{.SwapDeploymentGasPrice}}
swap-factory-address: {{.SwapFactoryAddress}}
swap-legacy-factory-addresses: {{.SwapLegacyFactoryAddresses}}
swap-initial-deposit: {{.SwapInitialDeposit}}
tracing-enable: {{.TracingEnabled}}
tracing-endpoint: {{.TracingEndpoint}}
Expand Down
97 changes: 48 additions & 49 deletions pkg/orchestration/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,53 +113,52 @@ type CreateOptions struct {

// Config represents Bee configuration
type Config struct {
AllowPrivateCIDRs bool // allow to advertise private CIDRs to the public network
APIAddr string // HTTP API listen address
BlockTime uint64 // chain block time
Bootnodes string // initial nodes to connect to
BootnodeMode bool // cause the node to always accept incoming connections
CacheCapacity uint64 // cache capacity in chunks, multiply by 4096 (MaxChunkSize) to get approximate capacity in bytes
ClefSignerEnable bool // enable clef signer
ClefSignerEndpoint string // clef signer endpoint
CORSAllowedOrigins string // origins with CORS headers enabled
DataDir string // data directory
DbOpenFilesLimit int // number of open files allowed by database
DbBlockCacheCapacity int // size of block cache of the database in bytes
DbWriteBufferSize int // size of the database write buffer in bytes
DbDisableSeeksCompaction bool // disables DB compactions triggered by seeks
DebugAPIAddr string // debug HTTP API listen address
DebugAPIEnable bool // enable debug HTTP API
FullNode bool // cause the node to start in full mode
Mainnet bool // enable mainnet
NATAddr string // NAT exposed address
NetworkID uint64 // ID of the Swarm network
P2PAddr string // P2P listen address
P2PWSEnable bool // enable P2P WebSocket transport
Password string // password for decrypting keys
PaymentEarly uint64 // amount in BZZ below the peers payment threshold when we initiate settlement
PaymentThreshold uint64 // threshold in BZZ where you expect to get paid from your peers
PaymentTolerance uint64 // excess debt above payment threshold in BZZ where you disconnect from your peer
PostageStampAddress string // postage stamp address
PostageContractStartBlock uint64 // postage stamp address
PriceOracleAddress string // price Oracle address
ResolverOptions string // ENS compatible API endpoint for a TLD and with contract address, can be repeated, format [tld:][contract-addr@]url
Restricted bool // start node in restricted mode
TokenEncryptionKey string // username for API authentication
AdminPassword string // password hash for API authentication
ChequebookEnable bool // enable chequebook
SwapEnable bool // enable swap
SwapEndpoint string // swap ethereum blockchain endpoint
SwapDeploymentGasPrice string // gas price in wei to use for deployment and funding
SwapFactoryAddress string // swap factory address
SwapLegacyFactoryAddresses string // swap legacy factory addresses
RedistributionAddress string // redistribution address
StakingAddress string // staking address
StorageIncentivesEnable string // storage incentives enable flag
SwapInitialDeposit uint64 // initial deposit if deploying a new chequebook
TracingEnabled bool // enable tracing
TracingEndpoint string // endpoint to send tracing data
TracingServiceName string // service name identifier for tracing
Verbosity uint64 // log verbosity level 0=silent, 1=error, 2=warn, 3=info, 4=debug, 5=trace
WelcomeMessage string // send a welcome message string during handshakes
WarmupTime time.Duration // warmup time pull/pushsync protocols
AllowPrivateCIDRs bool // allow to advertise private CIDRs to the public network
APIAddr string // HTTP API listen address
BlockTime uint64 // chain block time
Bootnodes string // initial nodes to connect to
BootnodeMode bool // cause the node to always accept incoming connections
CacheCapacity uint64 // cache capacity in chunks, multiply by 4096 (MaxChunkSize) to get approximate capacity in bytes
ClefSignerEnable bool // enable clef signer
ClefSignerEndpoint string // clef signer endpoint
CORSAllowedOrigins string // origins with CORS headers enabled
DataDir string // data directory
DbOpenFilesLimit int // number of open files allowed by database
DbBlockCacheCapacity int // size of block cache of the database in bytes
DbWriteBufferSize int // size of the database write buffer in bytes
DbDisableSeeksCompaction bool // disables DB compactions triggered by seeks
DebugAPIAddr string // debug HTTP API listen address
DebugAPIEnable bool // enable debug HTTP API
FullNode bool // cause the node to start in full mode
Mainnet bool // enable mainnet
NATAddr string // NAT exposed address
NetworkID uint64 // ID of the Swarm network
P2PAddr string // P2P listen address
P2PWSEnable bool // enable P2P WebSocket transport
Password string // password for decrypting keys
PaymentEarly uint64 // amount in BZZ below the peers payment threshold when we initiate settlement
PaymentThreshold uint64 // threshold in BZZ where you expect to get paid from your peers
PaymentTolerance uint64 // excess debt above payment threshold in BZZ where you disconnect from your peer
PostageStampAddress string // postage stamp address
PostageContractStartBlock uint64 // postage stamp address
PriceOracleAddress string // price Oracle address
ResolverOptions string // ENS compatible API endpoint for a TLD and with contract address, can be repeated, format [tld:][contract-addr@]url
Restricted bool // start node in restricted mode
TokenEncryptionKey string // username for API authentication
AdminPassword string // password hash for API authentication
ChequebookEnable bool // enable chequebook
SwapEnable bool // enable swap
SwapEndpoint string // swap ethereum blockchain endpoint
SwapDeploymentGasPrice string // gas price in wei to use for deployment and funding
SwapFactoryAddress string // swap factory address
RedistributionAddress string // redistribution address
StakingAddress string // staking address
StorageIncentivesEnable string // storage incentives enable flag
SwapInitialDeposit uint64 // initial deposit if deploying a new chequebook
TracingEnabled bool // enable tracing
TracingEndpoint string // endpoint to send tracing data
TracingServiceName string // service name identifier for tracing
Verbosity uint64 // log verbosity level 0=silent, 1=error, 2=warn, 3=info, 4=debug, 5=trace
WelcomeMessage string // send a welcome message string during handshakes
WarmupTime time.Duration // warmup time pull/pushsync protocols
}

0 comments on commit 3b2d075

Please sign in to comment.