Skip to content

Commit

Permalink
Merge pull request #372 from icon-project/feature/steller-integration
Browse files Browse the repository at this point in the history
feat: steller integration
  • Loading branch information
sherpalden authored Sep 20, 2024
2 parents 6653213 + bd8f3a0 commit 6b7886b
Show file tree
Hide file tree
Showing 33 changed files with 2,813 additions and 157 deletions.
3 changes: 3 additions & 0 deletions cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (

jsoniter "github.com/json-iterator/go"

"github.com/icon-project/centralized-relay/relayer/chains/steller"
"github.com/icon-project/centralized-relay/relayer/chains/sui"
"github.com/icon-project/centralized-relay/relayer/chains/wasm"

Expand Down Expand Up @@ -257,6 +258,8 @@ func (iw *ProviderConfigYAMLWrapper) UnmarshalYAML(n *yaml.Node) error {
iw.Value = new(evm.Config)
case "cosmos":
iw.Value = new(wasm.Config)
case "stellar":
iw.Value = new(steller.Config)
case "sui":
iw.Value = new(sui.Config)
default:
Expand Down
17 changes: 17 additions & 0 deletions example/configs/steller.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"type": "stellar",
"value": {
"chain-id": "testnet.stellar",
"nid": "testnet.stellar",
"horizon-url": "https://horizon-testnet.stellar.org",
"soroban-url": "https://soroban-testnet.stellar.org",
"start-height": 0,
"address": "GCQ5YPTO5ORNZ7WMADFAWP2D7NOJBZGDLWAUYNMSNLIHRNMSJXXFFWE3",
"max-inclusion-fee": 100000,
"contracts": {
"xcall": "CBD2YWKFJWNGD347TVKMFGQ6LSTPMVJ5QM5MLD62OLPKLMKIJWXJGK7O",
"connection": "CBD2YWKFJWNGD347TVKMFGQ6LSTPMVJ5QM5MLD62OLPKLMKIJWXJGK7O"
},
"network-passphrase": "Test SDF Network ; September 2015"
}
}
14 changes: 11 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ require (
github.com/pkg/errors v0.9.1
github.com/spf13/cobra v1.8.1
github.com/spf13/viper v1.19.0
github.com/stellar/go v0.0.0-20240517163948-afd526d41b2d
github.com/stellar/go-xdr v0.0.0-20231122183749-b53fb00bcac2
github.com/stretchr/testify v1.9.0
github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d
go.uber.org/zap v1.27.0
Expand Down Expand Up @@ -58,6 +60,8 @@ require (
github.com/evalphobia/logrus_fluent v0.5.4 // indirect
github.com/fluent/fluent-logger-golang v1.9.0 // indirect
github.com/gballet/go-libpcsclite v0.0.0-20191108122812-4678299bea08 // indirect
github.com/go-chi/chi v4.1.2+incompatible // indirect
github.com/go-errors/errors v1.5.1 // indirect
github.com/go-kit/log v0.2.1 // indirect
github.com/go-logfmt/logfmt v0.6.0 // indirect
github.com/go-logr/logr v1.4.1 // indirect
Expand All @@ -69,11 +73,13 @@ require (
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/gorilla/schema v1.2.0 // indirect
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
github.com/holiman/bloomfilter/v2 v2.0.3 // indirect
github.com/labstack/echo/v4 v4.11.3 // indirect
github.com/labstack/gommon v0.4.1 // indirect
github.com/leodido/go-urn v1.2.4 // indirect
github.com/manucorporat/sse v0.0.0-20160126180136-ee05b128a739 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mitchellh/hashstructure/v2 v2.0.2 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
Expand All @@ -87,10 +93,12 @@ require (
github.com/prometheus/statsd_exporter v0.26.0 // indirect
github.com/sagikazarmark/locafero v0.6.0 // indirect
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
github.com/segmentio/go-loggly v0.5.1-0.20171222203950-eb91657e62b2 // indirect
github.com/shamaton/msgpack/v2 v2.2.0 // indirect
github.com/shopspring/decimal v1.3.1 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/sourcegraph/conc v0.3.0 // indirect
github.com/stretchr/objx v0.5.2 // indirect
github.com/tinylib/msgp v1.1.9 // indirect
github.com/tyler-smith/go-bip39 v1.1.0 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
Expand Down Expand Up @@ -147,7 +155,7 @@ require (
github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 // indirect
github.com/bits-and-blooms/bitset v1.13.0 // indirect
github.com/btcsuite/btcd/btcec/v2 v2.3.3 // indirect
github.com/cenkalti/backoff/v4 v4.1.3 // indirect
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
github.com/cespare/xxhash v1.1.0 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/chzyer/readline v1.5.1 // indirect
Expand Down Expand Up @@ -229,7 +237,7 @@ require (
github.com/klauspost/compress v1.17.8 // indirect
github.com/kr/pretty v0.3.1 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/lib/pq v1.10.7 // indirect
github.com/lib/pq v1.10.9 // indirect
github.com/linxGnu/grocksdb v1.8.14 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/manifoldco/promptui v0.9.0 // indirect
Expand All @@ -250,7 +258,7 @@ require (
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
github.com/rivo/uniseg v0.4.3 // indirect
github.com/rogpeppe/go-internal v1.12.0 // indirect
github.com/rs/cors v1.8.3 // indirect
github.com/rs/cors v1.10.1 // indirect
github.com/rs/zerolog v1.33.0 // indirect
github.com/sasha-s/go-deadlock v0.3.1 // indirect
github.com/shirou/gopsutil v3.21.11+incompatible // indirect
Expand Down
Loading

0 comments on commit 6b7886b

Please sign in to comment.