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

BCF 2440 remove chainsets from core #10349

Merged
merged 48 commits into from
Aug 30, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
26053b0
add native token field to cosmos config
calvwang9 Aug 16, 2023
5f4708b
remove fcdurl
calvwang9 Aug 16, 2023
8d97686
Merge branch 'develop' of github.com:smartcontractkit/chainlink into …
calvwang9 Aug 16, 2023
061df89
change gas token to native token
calvwang9 Aug 16, 2023
052cd3b
rename to fee token
calvwang9 Aug 16, 2023
3f28435
add basic methods to chain service
krehermann Aug 18, 2023
a09355a
add bech32 prefix to cosmos config
calvwang9 Aug 22, 2023
0db2e6b
bump chainlink-cosmos to feature branch
calvwang9 Aug 22, 2023
e2da6d2
fix type error
calvwang9 Aug 22, 2023
f68729b
update chain-cosmos.toml
calvwang9 Aug 22, 2023
08c799d
merge develop
calvwang9 Aug 22, 2023
8380ee6
fix fee estimator test
calvwang9 Aug 22, 2023
52cb367
fix types and gas price estimator input
calvwang9 Aug 22, 2023
e12c5e2
make config-docs
calvwang9 Aug 22, 2023
383fddd
update chainlink-cosmos version
calvwang9 Aug 22, 2023
0c8579a
fix cosmos config tests
calvwang9 Aug 22, 2023
d087834
update tomls and types
calvwang9 Aug 22, 2023
c88d6ca
GetChainStatus, ListNodeStatuses for cosmos and evm
krehermann Aug 22, 2023
eb96835
fix tests
calvwang9 Aug 23, 2023
af81c8d
cleanup CosmosSendAtom
calvwang9 Aug 23, 2023
0de74a9
solana and starknet. fix solana tests
krehermann Aug 23, 2023
035d82f
fix docs and scripts tests
calvwang9 Aug 23, 2023
5b8a8a8
remove atom references
calvwang9 Aug 23, 2023
3ed0672
use ValidateDenom
calvwang9 Aug 23, 2023
a87247b
fix cosmos config in relayer test
calvwang9 Aug 23, 2023
7261bf1
Merge branch 'develop' into BCI-1738/cosmos-cleanup
calvwang9 Aug 24, 2023
0ce6de7
sort cosmos config fields alphabetically
calvwang9 Aug 24, 2023
5a0231c
undo accidental test changes
calvwang9 Aug 24, 2023
a574125
WIP: remove chainset implementation from all chains
krehermann Aug 24, 2023
4a3a273
bump chainlink-cosmos version
calvwang9 Aug 24, 2023
c16aeb5
fix cosmos config order
calvwang9 Aug 24, 2023
bb69b02
Merge branch 'develop' into BCI-1738/cosmos-cleanup
calvwang9 Aug 24, 2023
12c1b66
Merge branch 'develop' into BCI-1738/cosmos-cleanup
calvwang9 Aug 24, 2023
6ecd16e
Merge branch 'develop' into BCI-1738/cosmos-cleanup
krehermann Aug 24, 2023
7a15731
Merge branch 'BCI-1738/cosmos-cleanup' into BCF-2441-update-loop-inte…
krehermann Aug 24, 2023
f9ac243
update relay factor to work with chains instead of chainsets
krehermann Aug 24, 2023
a6da710
Merge branch 'develop' into BCF-2441-update-loop-interface
krehermann Aug 24, 2023
c866cb5
remove chainsets implementations :)
krehermann Aug 24, 2023
c558c4a
fix implementations to work with existing loop.Relay interfaces. prev…
krehermann Aug 24, 2023
e567f3e
fix dependencies
krehermann Aug 25, 2023
9a568ae
fix nil test failure and linter
krehermann Aug 25, 2023
15a5f0a
fixes and more tests
krehermann Aug 25, 2023
62f7070
update toml passed to loop
krehermann Aug 25, 2023
6b519a9
address comments; fix or document TODOs; revert test changes; move/re…
krehermann Aug 29, 2023
bd78e90
Merge branch 'develop' into BCF-2441-update-loop-interface
krehermann Aug 29, 2023
01d1897
Merge branch 'develop' into BCF-2441-update-loop-interface
krehermann Aug 30, 2023
56f0be0
fix variable naming and error messages and revert total to -1 on error
krehermann Aug 30, 2023
1153e16
Merge branch 'develop' into BCF-2441-update-loop-interface
krehermann Aug 30, 2023
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
Prev Previous commit
Next Next commit
remove fcdurl
  • Loading branch information
calvwang9 committed Aug 16, 2023
commit 5f4708bbd700c74b81c236f4c0489aaf05a937d1
7 changes: 0 additions & 7 deletions core/chains/cosmos/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,6 @@ func setFromChain(c, f *coscfg.Chain) {
if f.FallbackGasPrice != nil {
c.FallbackGasPrice = f.FallbackGasPrice
}
if f.FCDURL != nil {
c.FCDURL = f.FCDURL
}
if f.GasLimitMultiplier != nil {
c.GasLimitMultiplier = f.GasLimitMultiplier
}
Expand Down Expand Up @@ -330,10 +327,6 @@ func (c *CosmosConfig) FallbackGasPrice() sdk.Dec {
return sdkDecFromDecimal(c.Chain.FallbackGasPrice)
}

func (c *CosmosConfig) FCDURL() url.URL {
return (url.URL)(*c.Chain.FCDURL)
}

func (c *CosmosConfig) GasLimitMultiplier() float64 {
return c.Chain.GasLimitMultiplier.InexactFloat64()
}
Expand Down
2 changes: 0 additions & 2 deletions core/config/docs/chains-cosmos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ BlocksUntilTxTimeout = 30 # Default
ConfirmPollPeriod = '1s' # Default
# FallbackGasPrice sets a fallback gas price to use when the estimator is not available.
FallbackGasPrice = '0.015' # Default
# FCDURL sets the FCD (Full Client Daemon) URL.
FCDURL = 'http://cosmos.com' # Example
# GasLimitMultiplier scales the estimated gas limit.
GasLimitMultiplier = '1.5' # Default
# MaxMsgsPerBatch limits the numbers of mesages per transaction batch.
Expand Down
2 changes: 0 additions & 2 deletions core/services/chainlink/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,6 @@ func TestConfig_Marshal(t *testing.T) {
BlocksUntilTxTimeout: ptr[int64](12),
ConfirmPollPeriod: relayutils.MustNewDuration(time.Second),
FallbackGasPrice: mustDecimal("0.001"),
FCDURL: relayutils.MustParseURL("http://cosmos.com"),
GasLimitMultiplier: mustDecimal("1.2"),
MaxMsgsPerBatch: ptr[int64](17),
OCR2CachePollPeriod: relayutils.MustNewDuration(time.Minute),
Expand Down Expand Up @@ -960,7 +959,6 @@ BlockRate = '1m0s'
BlocksUntilTxTimeout = 12
ConfirmPollPeriod = '1s'
FallbackGasPrice = '0.001'
FCDURL = 'http://cosmos.com'
GasLimitMultiplier = '1.2'
MaxMsgsPerBatch = 17
OCR2CachePollPeriod = '1m0s'
Expand Down
1 change: 0 additions & 1 deletion core/services/chainlink/testdata/config-full.toml
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,6 @@ BlockRate = '1m0s'
BlocksUntilTxTimeout = 12
ConfirmPollPeriod = '1s'
FallbackGasPrice = '0.001'
FCDURL = 'http://cosmos.com'
GasLimitMultiplier = '1.2'
MaxMsgsPerBatch = 17
OCR2CachePollPeriod = '1m0s'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,6 @@ BlockRate = '6s'
BlocksUntilTxTimeout = 30
ConfirmPollPeriod = '1s'
FallbackGasPrice = '0.015'
FCDURL = ''
GasLimitMultiplier = '1.5'
MaxMsgsPerBatch = 13
OCR2CachePollPeriod = '4s'
Expand All @@ -472,7 +471,6 @@ BlockRate = '6s'
BlocksUntilTxTimeout = 20
ConfirmPollPeriod = '1s'
FallbackGasPrice = '0.015'
FCDURL = ''
GasLimitMultiplier = '1.5'
MaxMsgsPerBatch = 100
OCR2CachePollPeriod = '4s'
Expand Down
1 change: 0 additions & 1 deletion core/web/cosmos_chains_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ BlockRate = '6s'
BlocksUntilTxTimeout = 30
ConfirmPollPeriod = '1s'
FallbackGasPrice = '9.999'
FCDURL = ''
GasLimitMultiplier = '1.55555'
MaxMsgsPerBatch = 100
OCR2CachePollPeriod = '4s'
Expand Down
1 change: 0 additions & 1 deletion core/web/resolver/testdata/config-full.toml
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,6 @@ BlockRate = '1m0s'
BlocksUntilTxTimeout = 12
ConfirmPollPeriod = '1s'
FallbackGasPrice = '0.001'
FCDURL = 'http://cosmos.com'
GasLimitMultiplier = '1.2'
MaxMsgsPerBatch = 17
OCR2CachePollPeriod = '1m0s'
Expand Down
2 changes: 0 additions & 2 deletions core/web/resolver/testdata/config-multi-chain-effective.toml
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,6 @@ BlockRate = '6s'
BlocksUntilTxTimeout = 30
ConfirmPollPeriod = '1s'
FallbackGasPrice = '0.015'
FCDURL = ''
GasLimitMultiplier = '1.5'
MaxMsgsPerBatch = 13
OCR2CachePollPeriod = '4s'
Expand All @@ -472,7 +471,6 @@ BlockRate = '6s'
BlocksUntilTxTimeout = 20
ConfirmPollPeriod = '1s'
FallbackGasPrice = '0.015'
FCDURL = ''
GasLimitMultiplier = '1.5'
MaxMsgsPerBatch = 100
OCR2CachePollPeriod = '4s'
Expand Down
7 changes: 0 additions & 7 deletions docs/CONFIG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5139,7 +5139,6 @@ BlockRate = '6s' # Default
BlocksUntilTxTimeout = 30 # Default
ConfirmPollPeriod = '1s' # Default
FallbackGasPrice = '0.015' # Default
FCDURL = 'http://cosmos.com' # Example
GasLimitMultiplier = '1.5' # Default
MaxMsgsPerBatch = 100 # Default
OCR2CachePollPeriod = '4s' # Default
Expand Down Expand Up @@ -5184,12 +5183,6 @@ FallbackGasPrice = '0.015' # Default
```
FallbackGasPrice sets a fallback gas price to use when the estimator is not available.

### FCDURL
```toml
FCDURL = 'http://cosmos.com' # Example
```
FCDURL sets the FCD (Full Client Daemon) URL.

### GasLimitMultiplier
```toml
GasLimitMultiplier = '1.5' # Default
Expand Down
1 change: 0 additions & 1 deletion integration-tests/client/chainlink_models.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,6 @@ type CosmosChainConfig struct {
type CosmosChainAttributes struct {
ChainID string `json:"chainID"`
Config CosmosChainConfig `json:"config"`
FCDURL string `json:"fcdURL" db:"fcd_url"`
}

// CosmosChain is the model that represents the terra chain when read
Expand Down