Skip to content

Commit 9a7f986

Browse files
committed
update sdk-go
1 parent a1acae1 commit 9a7f986

File tree

6 files changed

+13
-7
lines changed

6 files changed

+13
-7
lines changed

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
with:
1818
go-version: 1.20.0
1919
- name: Generate Test files
20-
uses: actions/cache@v2
20+
uses: actions/cache@v3
2121
id: cache-packages # give it a name for checking the cache hit-or-not
2222
with:
2323
path: ./inputs/ # what we cache: the folder

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/Gearbox-protocol/third-eye
33
go 1.20
44

55
require (
6-
github.com/Gearbox-protocol/sdk-go v0.0.0-20250306124547-af05961a4234
6+
github.com/Gearbox-protocol/sdk-go v0.0.0-20250309120715-87a114a7ad27
77
github.com/ethereum/go-ethereum v1.13.14
88
github.com/go-playground/validator/v10 v10.4.1
99
github.com/google/go-cmp v0.5.9

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ contrib.go.opencensus.io/exporter/ocagent v0.6.0/go.mod h1:zmKjrJcdo0aYcVS7bmEeS
55
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
66
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
77
github.com/DataDog/zstd v1.4.5 h1:EndNeuB0l9syBZhut0wns3gV1hL8zX8LIu6ZiVHWLIQ=
8-
github.com/Gearbox-protocol/sdk-go v0.0.0-20250306124547-af05961a4234 h1:uOfIv6EBW8654Ol7+gLw/RfAALIhRFHm2OPnxxxhgTs=
9-
github.com/Gearbox-protocol/sdk-go v0.0.0-20250306124547-af05961a4234/go.mod h1:jRBSOG94bpGc5ci8EWIPUVXZdaGEaekMNmhajbmWFVU=
8+
github.com/Gearbox-protocol/sdk-go v0.0.0-20250309120715-87a114a7ad27 h1:KhRX015i5aCEzklx8AlY/CneXgeSae8K4FDU5JBb+RA=
9+
github.com/Gearbox-protocol/sdk-go v0.0.0-20250309120715-87a114a7ad27/go.mod h1:jRBSOG94bpGc5ci8EWIPUVXZdaGEaekMNmhajbmWFVU=
1010
github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow=
1111
github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM=
1212
github.com/OffchainLabs/go-ethereum v1.13.4-0.20240313010929-e5d8587e7227 h1:+/3TrD+q+BP36jGj2Bycdmrc/joKLNbc5ImePQzKRLM=

scripts/05_fix_pool_ledger_v3/main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ func (r *Repo) AddPoolLedger(event *schemas.PoolLedger) {
2929
r.events = append(r.events, event)
3030
}
3131
func (r *Repo) GetToken(token string) *schemas.Token {
32-
return r.tStore.GetToken(token)
32+
x, err := r.tStore.GetToken(token)
33+
log.CheckFatal(err)
34+
return x
3335
}
3436
func (r *Repo) getPoolLedger() []*schemas.PoolLedger {
3537
ans := r.events

scripts/11_dao_gho_fix/main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ func (r *Repo) AddPoolLedger(event *schemas.PoolLedger) {
2828
r.events = append(r.events, event)
2929
}
3030
func (r *Repo) GetToken(token string) *schemas.Token {
31-
return r.tStore.GetToken(token)
31+
x, err := r.tStore.GetToken(token)
32+
log.CheckFatal(err)
33+
return x
3234
}
3335
func (r *Repo) getPoolLedger() []*schemas.PoolLedger {
3436
ans := r.events

scripts/12_lm_rewards_dao_gho/main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ func (r *Repo) AddPoolLedger(event *schemas.PoolLedger) {
3333
r.events = append(r.events, event)
3434
}
3535
func (r *Repo) GetToken(token string) *schemas.Token {
36-
return r.tStore.GetToken(token)
36+
x, err := r.tStore.GetToken(token)
37+
log.CheckFatal(err)
38+
return x
3739
}
3840
func (r *Repo) getPoolLedger() []*schemas.PoolLedger {
3941
ans := r.events

0 commit comments

Comments
 (0)