Skip to content

Commit 92e0888

Browse files
committed
bump starknet.go v0.7.2; rm unused incomapible code
1 parent 3caa0e9 commit 92e0888

File tree

9 files changed

+20
-67
lines changed

9 files changed

+20
-67
lines changed

integration-tests/go.mod

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
module github.com/smartcontractkit/chainlink-starknet/integration-tests
22

3-
go 1.23.1
4-
5-
toolchain go1.23.3
3+
go 1.23.3
64

75
require (
86
github.com/NethermindEth/juno v0.12.4
9-
github.com/NethermindEth/starknet.go v0.7.1-0.20240401080518-34a506f3cfdb
7+
github.com/NethermindEth/starknet.go v0.7.2
108
github.com/barkimedes/go-deepcopy v0.0.0-20220514131651-17c30cfc62df
119
github.com/go-resty/resty/v2 v2.13.1
1210
github.com/google/uuid v1.6.0

integration-tests/go.sum

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERo
134134
github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU=
135135
github.com/NethermindEth/juno v0.12.4 h1:TwSLxTCv1UH5XNOfTRcdA0EBgX3L7abD9rpgWeoHOKo=
136136
github.com/NethermindEth/juno v0.12.4/go.mod h1:XonWmZVRwCVHv1gjoVCoTFiZnYObwdukpd3NCsl04bA=
137-
github.com/NethermindEth/starknet.go v0.7.1-0.20240401080518-34a506f3cfdb h1:Mv8SscePPyw2ju4igIJAjFgcq5zCQfjgbz53DwYu5mc=
138-
github.com/NethermindEth/starknet.go v0.7.1-0.20240401080518-34a506f3cfdb/go.mod h1:gQkhWpAs9/QR6reZU2xoi1UIYlMS64FLTlh9CrgHH/Y=
137+
github.com/NethermindEth/starknet.go v0.7.2 h1:D1jipxqDmTmclnhYthdw8YOIxzw2Bw7I/2XVoG3WoSc=
138+
github.com/NethermindEth/starknet.go v0.7.2/go.mod h1:qDb22jUUbOT5hWC4mgyuFp5q40JIyHfVo13XIB0OLy4=
139139
github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 h1:TngWCqHvy9oXAN6lEVMRuU21PR1EtLVZJmdB18Gu3Rw=
140140
github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5/go.mod h1:lmUJ/7eu/Q8D7ML55dXQrVaamCz2vxCfdQBasLZfHKk=
141141
github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
@@ -1700,6 +1700,8 @@ go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0
17001700
go.uber.org/goleak v1.1.11/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ=
17011701
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
17021702
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
1703+
go.uber.org/mock v0.4.0 h1:VcM4ZOtdbR4f6VXfiOpwpVJDL6lCReaZ6mw31wqh7KU=
1704+
go.uber.org/mock v0.4.0/go.mod h1:a6FSlNadKUHUa9IP5Vyt1zh4fC7uAwxMutEAscFbkZc=
17031705
go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0=
17041706
go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4=
17051707
go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU=

monitoring/go.mod

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
module github.com/smartcontractkit/chainlink-starknet/monitoring
22

3-
go 1.23.1
4-
5-
toolchain go1.23.3
3+
go 1.23.3
64

75
require (
86
github.com/NethermindEth/juno v0.12.4
9-
github.com/NethermindEth/starknet.go v0.7.1-0.20240401080518-34a506f3cfdb
7+
github.com/NethermindEth/starknet.go v0.7.2
108
github.com/prometheus/client_golang v1.20.4
119
github.com/smartcontractkit/chainlink-common v0.3.1-0.20241011160913-5d432bcdc2e8
1210
github.com/smartcontractkit/chainlink-starknet/relayer v0.0.0-20230508053614-9f2fd5fd4ff1
@@ -98,7 +96,6 @@ require (
9896
github.com/spf13/pflag v1.0.5 // indirect
9997
github.com/stretchr/objx v0.5.2 // indirect
10098
github.com/supranational/blst v0.3.13 // indirect
101-
github.com/test-go/testify v1.1.4 // indirect
10299
github.com/tklauser/go-sysconf v0.3.13 // indirect
103100
github.com/tklauser/numcpus v0.7.0 // indirect
104101
github.com/wk8/go-ordered-map/v2 v2.1.8 // indirect

monitoring/go.sum

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ github.com/Microsoft/hcsshim v0.9.4 h1:mnUj0ivWy6UzbB1uLFqKR6F+ZyiDc7j4iGgHTpO+5
1010
github.com/Microsoft/hcsshim v0.9.4/go.mod h1:7pLA8lDk46WKDWlVsENo92gC0XFa8rbKfyFRBqxEbCc=
1111
github.com/NethermindEth/juno v0.12.4 h1:TwSLxTCv1UH5XNOfTRcdA0EBgX3L7abD9rpgWeoHOKo=
1212
github.com/NethermindEth/juno v0.12.4/go.mod h1:XonWmZVRwCVHv1gjoVCoTFiZnYObwdukpd3NCsl04bA=
13-
github.com/NethermindEth/starknet.go v0.7.1-0.20240401080518-34a506f3cfdb h1:Mv8SscePPyw2ju4igIJAjFgcq5zCQfjgbz53DwYu5mc=
14-
github.com/NethermindEth/starknet.go v0.7.1-0.20240401080518-34a506f3cfdb/go.mod h1:gQkhWpAs9/QR6reZU2xoi1UIYlMS64FLTlh9CrgHH/Y=
13+
github.com/NethermindEth/starknet.go v0.7.2 h1:D1jipxqDmTmclnhYthdw8YOIxzw2Bw7I/2XVoG3WoSc=
14+
github.com/NethermindEth/starknet.go v0.7.2/go.mod h1:qDb22jUUbOT5hWC4mgyuFp5q40JIyHfVo13XIB0OLy4=
1515
github.com/VictoriaMetrics/fastcache v1.12.2 h1:N0y9ASrJ0F6h0QaC3o6uJb3NIZ9VKLjCM7NQbSmF7WI=
1616
github.com/VictoriaMetrics/fastcache v1.12.2/go.mod h1:AmC+Nzz1+3G2eCPapF6UcsnkThDcMsQicp4xDukwJYI=
1717
github.com/bahlo/generic-list-go v0.2.0 h1:5sz/EEAK+ls5wF+NeqDpk5+iNdMDXrh3z3nPnH1Wvgk=
@@ -141,8 +141,6 @@ github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfU
141141
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE=
142142
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
143143
github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
144-
github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc=
145-
github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs=
146144
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
147145
github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
148146
github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
@@ -346,8 +344,6 @@ github.com/supranational/blst v0.3.13 h1:AYeSxdOMacwu7FBmpfloBz5pbFXDmJL33RuwnKt
346344
github.com/supranational/blst v0.3.13/go.mod h1:jZJtfjgudtNl4en1tzwPIV3KjUnQUvG3/j+w+fVonLw=
347345
github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d h1:vfofYNRScrDdvS342BElfbETmL1Aiz3i2t0zfRj16Hs=
348346
github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d/go.mod h1:RRCYJbIwD5jmqPI9XoAFR0OcDxqUctll6zUj/+B4S48=
349-
github.com/test-go/testify v1.1.4 h1:Tf9lntrKUMHiXQ07qBScBTSA0dhYQlu83hswqelv1iE=
350-
github.com/test-go/testify v1.1.4/go.mod h1:rH7cfJo/47vWGdi4GPj16x3/t1xGOj2YxzmNQzk2ghU=
351347
github.com/testcontainers/testcontainers-go v0.14.0 h1:h0D5GaYG9mhOWr2qHdEKDXpkce/VlvaYOCzTRi6UBi8=
352348
github.com/testcontainers/testcontainers-go v0.14.0/go.mod h1:hSRGJ1G8Q5Bw2gXgPulJOLlEBaYJHeBSOkQM5JLG+JQ=
353349
github.com/tklauser/go-sysconf v0.3.13 h1:GBUpcahXSpR2xN01jhkNAbTLRk2Yzgggk8IM08lq3r4=
@@ -404,6 +400,8 @@ go.opentelemetry.io/proto/otlp v1.3.1 h1:TrMUixzpM0yuc/znrFTP9MMRh8trP93mkCiDVeX
404400
go.opentelemetry.io/proto/otlp v1.3.1/go.mod h1:0X1WI4de4ZsLrrJNLAQbFeLCm3T7yBkR0XqQ7niQU+8=
405401
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
406402
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
403+
go.uber.org/mock v0.4.0 h1:VcM4ZOtdbR4f6VXfiOpwpVJDL6lCReaZ6mw31wqh7KU=
404+
go.uber.org/mock v0.4.0/go.mod h1:a6FSlNadKUHUa9IP5Vyt1zh4fC7uAwxMutEAscFbkZc=
407405
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
408406
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
409407
go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8=

relayer/go.mod

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
module github.com/smartcontractkit/chainlink-starknet/relayer
22

3-
go 1.23.1
4-
5-
toolchain go1.23.3
3+
go 1.23.3
64

75
require (
86
github.com/NethermindEth/juno v0.12.4
9-
github.com/NethermindEth/starknet.go v0.7.1-0.20240401080518-34a506f3cfdb
7+
github.com/NethermindEth/starknet.go v0.7.2
108
github.com/ethereum/go-ethereum v1.14.11
119
github.com/hashicorp/go-plugin v1.6.2-0.20240829161738-06afb6d7ae99
1210
github.com/pelletier/go-toml/v2 v2.2.2
@@ -98,7 +96,6 @@ require (
9896
github.com/stretchr/objx v0.5.2 // indirect
9997
github.com/supranational/blst v0.3.13 // indirect
10098
github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect
101-
github.com/test-go/testify v1.1.4 // indirect
10299
github.com/tklauser/go-sysconf v0.3.13 // indirect
103100
github.com/tklauser/numcpus v0.7.0 // indirect
104101
github.com/wk8/go-ordered-map/v2 v2.1.8 // indirect

relayer/go.sum

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERo
66
github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU=
77
github.com/NethermindEth/juno v0.12.4 h1:TwSLxTCv1UH5XNOfTRcdA0EBgX3L7abD9rpgWeoHOKo=
88
github.com/NethermindEth/juno v0.12.4/go.mod h1:XonWmZVRwCVHv1gjoVCoTFiZnYObwdukpd3NCsl04bA=
9-
github.com/NethermindEth/starknet.go v0.7.1-0.20240401080518-34a506f3cfdb h1:Mv8SscePPyw2ju4igIJAjFgcq5zCQfjgbz53DwYu5mc=
10-
github.com/NethermindEth/starknet.go v0.7.1-0.20240401080518-34a506f3cfdb/go.mod h1:gQkhWpAs9/QR6reZU2xoi1UIYlMS64FLTlh9CrgHH/Y=
9+
github.com/NethermindEth/starknet.go v0.7.2 h1:D1jipxqDmTmclnhYthdw8YOIxzw2Bw7I/2XVoG3WoSc=
10+
github.com/NethermindEth/starknet.go v0.7.2/go.mod h1:qDb22jUUbOT5hWC4mgyuFp5q40JIyHfVo13XIB0OLy4=
1111
github.com/VictoriaMetrics/fastcache v1.12.2 h1:N0y9ASrJ0F6h0QaC3o6uJb3NIZ9VKLjCM7NQbSmF7WI=
1212
github.com/VictoriaMetrics/fastcache v1.12.2/go.mod h1:AmC+Nzz1+3G2eCPapF6UcsnkThDcMsQicp4xDukwJYI=
1313
github.com/bahlo/generic-list-go v0.2.0 h1:5sz/EEAK+ls5wF+NeqDpk5+iNdMDXrh3z3nPnH1Wvgk=
@@ -128,8 +128,6 @@ github.com/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOW
128128
github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0=
129129
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
130130
github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
131-
github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc=
132-
github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs=
133131
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
134132
github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
135133
github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
@@ -321,8 +319,6 @@ github.com/supranational/blst v0.3.13 h1:AYeSxdOMacwu7FBmpfloBz5pbFXDmJL33RuwnKt
321319
github.com/supranational/blst v0.3.13/go.mod h1:jZJtfjgudtNl4en1tzwPIV3KjUnQUvG3/j+w+fVonLw=
322320
github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d h1:vfofYNRScrDdvS342BElfbETmL1Aiz3i2t0zfRj16Hs=
323321
github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d/go.mod h1:RRCYJbIwD5jmqPI9XoAFR0OcDxqUctll6zUj/+B4S48=
324-
github.com/test-go/testify v1.1.4 h1:Tf9lntrKUMHiXQ07qBScBTSA0dhYQlu83hswqelv1iE=
325-
github.com/test-go/testify v1.1.4/go.mod h1:rH7cfJo/47vWGdi4GPj16x3/t1xGOj2YxzmNQzk2ghU=
326322
github.com/tklauser/go-sysconf v0.3.13 h1:GBUpcahXSpR2xN01jhkNAbTLRk2Yzgggk8IM08lq3r4=
327323
github.com/tklauser/go-sysconf v0.3.13/go.mod h1:zwleP4Q4OehZHGn4CYZDipCgg9usW5IJePewFCGVEa0=
328324
github.com/tklauser/numcpus v0.7.0 h1:yjuerZP127QG9m5Zh/mSO4wqurYil27tHrqwRoRjpr4=
@@ -375,6 +371,8 @@ go.opentelemetry.io/proto/otlp v1.3.1 h1:TrMUixzpM0yuc/znrFTP9MMRh8trP93mkCiDVeX
375371
go.opentelemetry.io/proto/otlp v1.3.1/go.mod h1:0X1WI4de4ZsLrrJNLAQbFeLCm3T7yBkR0XqQ7niQU+8=
376372
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
377373
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
374+
go.uber.org/mock v0.4.0 h1:VcM4ZOtdbR4f6VXfiOpwpVJDL6lCReaZ6mw31wqh7KU=
375+
go.uber.org/mock v0.4.0/go.mod h1:a6FSlNadKUHUa9IP5Vyt1zh4fC7uAwxMutEAscFbkZc=
378376
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
379377
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
380378
go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8=

relayer/pkg/chainlink/txm/txm.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func (txm *starktxm) broadcastLoop() {
118118
const FeeMargin uint32 = 115
119119
const RPCNonceErrMsg = "Invalid transaction nonce"
120120

121-
func (txm *starktxm) estimateFriFee(ctx context.Context, client *starknet.Client, accountAddress *felt.Felt, tx starknetrpc.InvokeTxnV3) (*starknetrpc.FeeEstimate, *felt.Felt, error) {
121+
func (txm *starktxm) estimateFriFee(ctx context.Context, client *starknet.Client, accountAddress *felt.Felt, tx starknetrpc.InvokeTxnV3) (*starknetrpc.FeeEstimation, *felt.Felt, error) {
122122
// skip prevalidation, which is known to overestimate amount of gas needed and error with L1GasBoundsExceedsBalance
123123
simFlags := []starknetrpc.SimulationFlag{starknetrpc.SKIP_VALIDATE}
124124

@@ -156,7 +156,7 @@ func (txm *starktxm) estimateFriFee(ctx context.Context, client *starknet.Client
156156
}
157157

158158
// track the FRI estimate, but keep looping so we print out all estimates
159-
var friEstimate *starknetrpc.FeeEstimate
159+
var friEstimate *starknetrpc.FeeEstimation
160160
for j, f := range feeEstimate {
161161
txm.lggr.Infow("Estimated fee", "attempt", i, "index", j, "EstimateNonce", estimateNonce, "GasConsumed", f.GasConsumed, "GasPrice", f.GasPrice, "DataGasConsumed", f.DataGasConsumed, "DataGasPrice", f.DataGasPrice, "OverallFee", f.OverallFee, "FeeUnit", string(f.FeeUnit))
162162
if f.FeeUnit == "FRI" {

relayer/pkg/starknet/chain_client.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ type ChainClient interface {
101101
LatestBlockHashAndNumber(ctx context.Context) (starknetrpc.BlockHashAndNumberOutput, error)
102102
// get block logs, event logs, etc.
103103
EventsByFilter(ctx context.Context, f starknetrpc.EventsInput) (starknetrpc.EventChunk, error)
104-
// TxReceiptByHash(ctx context.Context, h *felt.Felt) (starknetrpc.TransactionReceipt, error)
105104
Batch(ctx context.Context, builder BatchBuilder) ([]gethrpc.BatchElem, error)
106105
}
107106

relayer/pkg/starknet/client.go

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ type Reader interface {
2323
BlockWithTxHashes(ctx context.Context, blockID starknetrpc.BlockID) (*starknetrpc.Block, error)
2424
Call(context.Context, starknetrpc.FunctionCall, starknetrpc.BlockID) ([]*felt.Felt, error)
2525
Events(ctx context.Context, input starknetrpc.EventsInput) (*starknetrpc.EventChunk, error)
26-
TransactionByHash(context.Context, *felt.Felt) (starknetrpc.Transaction, error)
27-
TransactionReceipt(context.Context, *felt.Felt) (starknetrpc.TransactionReceipt, error)
2826
AccountNonce(context.Context, *felt.Felt) (*felt.Felt, error)
2927
}
3028

@@ -148,40 +146,6 @@ func (c *Client) Call(ctx context.Context, calls starknetrpc.FunctionCall, block
148146
return out, nil
149147
}
150148

151-
func (c *Client) TransactionByHash(ctx context.Context, hash *felt.Felt) (starknetrpc.Transaction, error) {
152-
if c.defaultTimeout != 0 {
153-
var cancel context.CancelFunc
154-
ctx, cancel = context.WithTimeout(ctx, c.defaultTimeout)
155-
defer cancel()
156-
}
157-
158-
out, err := c.Provider.TransactionByHash(ctx, hash)
159-
if err != nil {
160-
return out, fmt.Errorf("error in client.TransactionByHash: %w", err)
161-
}
162-
if out == nil {
163-
return out, NilResultError("client.TransactionByHash")
164-
}
165-
return out, nil
166-
}
167-
168-
func (c *Client) TransactionReceipt(ctx context.Context, hash *felt.Felt) (starknetrpc.TransactionReceipt, error) {
169-
if c.defaultTimeout != 0 {
170-
var cancel context.CancelFunc
171-
ctx, cancel = context.WithTimeout(ctx, c.defaultTimeout)
172-
defer cancel()
173-
}
174-
175-
out, err := c.Provider.TransactionReceipt(ctx, hash)
176-
if err != nil {
177-
return out, fmt.Errorf("error in client.TransactionReceipt: %w", err)
178-
}
179-
if out == nil {
180-
return out, NilResultError("client.TransactionReceipt")
181-
}
182-
return out, nil
183-
}
184-
185149
func (c *Client) Events(ctx context.Context, input starknetrpc.EventsInput) (*starknetrpc.EventChunk, error) {
186150
if c.defaultTimeout != 0 {
187151
var cancel context.CancelFunc

0 commit comments

Comments
 (0)