Skip to content

Commit cd3bef1

Browse files
authored
chore(deps): update blinklabs-io/gouroboros to v0.127.0 (#448)
Closes #447 Signed-off-by: Aurora Gaffney <[email protected]>
1 parent 733485a commit cd3bef1

File tree

5 files changed

+19
-9
lines changed

5 files changed

+19
-9
lines changed

filter/chainsync/chainsync_test.go

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,11 @@ func (m *MockAddress) UnmarshalCBOR(data []byte) error {
9191

9292
// MockOutput is a mock implementation of the TransactionOutput interface
9393
type MockOutput struct {
94-
address ledger.Address
95-
amount uint64
96-
assets *common.MultiAsset[common.MultiAssetTypeOutput]
97-
datum *cbor.LazyValue
94+
address ledger.Address
95+
amount uint64
96+
assets *common.MultiAsset[common.MultiAssetTypeOutput]
97+
datum *cbor.LazyValue
98+
scriptRef common.Script
9899
}
99100

100101
func (m MockOutput) Address() ledger.Address {
@@ -117,6 +118,10 @@ func (m MockOutput) DatumHash() *common.Blake2b256 {
117118
return nil
118119
}
119120

121+
func (m MockOutput) ScriptRef() common.Script {
122+
return m.scriptRef
123+
}
124+
120125
func (m MockOutput) Cbor() []byte {
121126
return []byte{}
122127
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ toolchain go1.24.4
77
require (
88
github.com/SundaeSwap-finance/kugo v1.3.0
99
github.com/SundaeSwap-finance/ogmigo/v6 v6.0.2
10-
github.com/blinklabs-io/gouroboros v0.125.1
10+
github.com/blinklabs-io/gouroboros v0.127.0
1111
github.com/btcsuite/btcd/btcutil v1.1.6
1212
github.com/gen2brain/beeep v0.11.1
1313
github.com/gin-gonic/gin v1.10.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ github.com/SundaeSwap-finance/ogmigo/v6 v6.0.2/go.mod h1:FgU9nAQNyi+ApWqXB+DKAcb
1313
github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII=
1414
github.com/aws/aws-sdk-go v1.55.6 h1:cSg4pvZ3m8dgYcgqB97MrcdjUmZ1BeMYKUxMMB89IPk=
1515
github.com/aws/aws-sdk-go v1.55.6/go.mod h1:eRwEWoyTWFMVYVQzKMNHWP5/RV4xIUGMQfXQHfHkpNU=
16-
github.com/blinklabs-io/gouroboros v0.125.1 h1:ZhKgKvFEcz8OtGxGrEYh8A03nqS7+QWqDE+/sGKNKdA=
17-
github.com/blinklabs-io/gouroboros v0.125.1/go.mod h1:LUGnvJ1iOmpCihNxT9fyZFf6KD5E45sV8ZqEUgljzDw=
16+
github.com/blinklabs-io/gouroboros v0.127.0 h1:Zy+ZIMizxjL90WqexO5x0FFW8W7Nla/p45IS56xY/zw=
17+
github.com/blinklabs-io/gouroboros v0.127.0/go.mod h1:LUGnvJ1iOmpCihNxT9fyZFf6KD5E45sV8ZqEUgljzDw=
1818
github.com/blinklabs-io/ouroboros-mock v0.3.8 h1:+DAt2rx0ouZUxee5DBMgZq3I1+ZdxFSHG9g3tYl/FKU=
1919
github.com/blinklabs-io/ouroboros-mock v0.3.8/go.mod h1:UwQIf4KqZwO13P9d90fbi3UL/X7JaJfeEbqk+bEeFQA=
2020
github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ=

input/chainsync/block_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ func (m MockBlock) Transactions() []common.Transaction {
8181
return m.transactions
8282
}
8383

84-
func (m MockBlock) Utxorpc() *utxorpc.Block {
85-
return nil
84+
func (m MockBlock) Utxorpc() (*utxorpc.Block, error) {
85+
return nil, nil
8686
}
8787

8888
func (m MockBlock) IsShelley() bool {

input/chainsync/transaction_output.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ func (txOut ResolvedTransactionOutput) DatumHash() *common.Blake2b256 {
153153
return nil
154154
}
155155

156+
func (txOut ResolvedTransactionOutput) ScriptRef() common.Script {
157+
// Placeholder for script ref
158+
return nil
159+
}
160+
156161
func (txOut ResolvedTransactionOutput) Cbor() []byte {
157162
// Placeholder for CBOR serialization
158163
return []byte{}

0 commit comments

Comments
 (0)