Skip to content

Commit fad0860

Browse files
authored
Add a rust implementation of teal (#12)
1 parent 2e65298 commit fad0860

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+9564
-33
lines changed

.github/workflows/tests.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,23 @@ on:
77
pull_request:
88

99
jobs:
10-
Test:
11-
name: Unit Test
10+
TestGo:
11+
name: Go tests
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
1515
- uses: actions/setup-go@v4
1616
with:
1717
go-version: '1.22'
1818
- name: Unit Test
19-
run: make tests
19+
run: cd go && make test
20+
TestRs:
21+
name: Rust tests
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v4
25+
- name: Install protocol buffers
26+
run: |
27+
sudo apt-get install -y protobuf-compiler
28+
- name: Unit Test
29+
run: cd rs && cargo test

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
bin/
1+
./bin/
22

33
.env
4+
rs/target
45

5-
**/operators/
6+
**/operators/
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/Layr-Labs/eigensdk-go/services/avsregistry"
1313
blsagg "github.com/Layr-Labs/eigensdk-go/services/bls_aggregation"
1414
"github.com/Layr-Labs/eigensdk-go/types"
15-
operatorrequester "github.com/Layr-Labs/teal/aggregator/operator_requester"
15+
operatorrequester "github.com/Layr-Labs/teal/go/aggregator/operator_requester"
1616
)
1717

1818
type AggregatorService struct {
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ import (
1111
blsagg "github.com/Layr-Labs/eigensdk-go/services/bls_aggregation"
1212
"github.com/Layr-Labs/eigensdk-go/testutils"
1313
"github.com/Layr-Labs/eigensdk-go/types"
14-
"github.com/Layr-Labs/teal/aggregator"
15-
mockOperatorRequester "github.com/Layr-Labs/teal/aggregator/operator_requester/mocks"
16-
pb "github.com/Layr-Labs/teal/api/service/v1"
17-
"github.com/Layr-Labs/teal/common"
14+
"github.com/Layr-Labs/teal/go/aggregator"
15+
mockOperatorRequester "github.com/Layr-Labs/teal/go/aggregator/operator_requester/mocks"
16+
pb "github.com/Layr-Labs/teal/go/api/service/v1"
17+
"github.com/Layr-Labs/teal/go/common"
1818
"github.com/stretchr/testify/assert"
1919
"go.uber.org/mock/gomock"
2020
)
File renamed without changes.

aggregator/operator_requester/mocks/operator_requester.go renamed to go/aggregator/operator_requester/mocks/operator_requester.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

aggregator/operator_requester/operator_requester.go renamed to go/aggregator/operator_requester/operator_requester.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55

66
"github.com/Layr-Labs/eigensdk-go/logging"
77
"github.com/Layr-Labs/eigensdk-go/types"
8-
pb "github.com/Layr-Labs/teal/api/service/v1"
8+
pb "github.com/Layr-Labs/teal/go/api/service/v1"
99
"google.golang.org/grpc"
1010
"google.golang.org/grpc/credentials/insecure"
1111
)

0 commit comments

Comments
 (0)