Skip to content

Commit 2f7bdcd

Browse files
authored
Merge pull request #1643 from smartcontractkit/PLEX-1731
Define SolanaService for the Relayer
2 parents 666e7c5 + 8cc14bb commit 2f7bdcd

File tree

33 files changed

+10649
-111
lines changed

33 files changed

+10649
-111
lines changed

.mockery.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ packages:
2222
ContractReader:
2323
EVMService:
2424
TONService:
25+
SolanaService:
2526
github.com/smartcontractkit/chainlink-common/pkg/types/core:
2627
interfaces:
2728
CapabilitiesRegistry:

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ require (
3030
github.com/kylelemons/godebug v1.1.0
3131
github.com/lib/pq v1.10.9
3232
github.com/marcboeker/go-duckdb v1.8.5
33+
github.com/mr-tron/base58 v1.2.0
3334
github.com/pelletier/go-toml v1.9.5
3435
github.com/pelletier/go-toml/v2 v2.2.4
3536
github.com/prometheus/client_golang v1.22.0
@@ -125,7 +126,6 @@ require (
125126
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
126127
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
127128
github.com/modern-go/reflect2 v1.0.2 // indirect
128-
github.com/mr-tron/base58 v1.2.0 // indirect
129129
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
130130
github.com/oklog/run v1.2.0 // indirect
131131
github.com/pierrec/lz4/v4 v4.1.22 // indirect

pkg/chains/solana/generate.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
//go:generate go run ./generate
2+
package solana

pkg/chains/solana/generate/main.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package main
2+
3+
import "github.com/smartcontractkit/chainlink-protos/cre/go/installer/pkg"
4+
5+
func main() {
6+
gen := &pkg.ProtocGen{Plugins: []pkg.Plugin{pkg.GoPlugin, {Name: "go-grpc"}}}
7+
gen.AddSourceDirectories("../..", ".")
8+
if err := gen.GenerateFile("solana.proto", "."); err != nil {
9+
panic(err)
10+
}
11+
}

0 commit comments

Comments
 (0)