diff --git a/filter/chainsync/chainsync_test.go b/filter/chainsync/chainsync_test.go index 715f425..f96e46e 100644 --- a/filter/chainsync/chainsync_test.go +++ b/filter/chainsync/chainsync_test.go @@ -91,10 +91,11 @@ func (m *MockAddress) UnmarshalCBOR(data []byte) error { // MockOutput is a mock implementation of the TransactionOutput interface type MockOutput struct { - address ledger.Address - amount uint64 - assets *common.MultiAsset[common.MultiAssetTypeOutput] - datum *cbor.LazyValue + address ledger.Address + amount uint64 + assets *common.MultiAsset[common.MultiAssetTypeOutput] + datum *cbor.LazyValue + scriptRef common.Script } func (m MockOutput) Address() ledger.Address { @@ -117,6 +118,10 @@ func (m MockOutput) DatumHash() *common.Blake2b256 { return nil } +func (m MockOutput) ScriptRef() common.Script { + return m.scriptRef +} + func (m MockOutput) Cbor() []byte { return []byte{} } diff --git a/go.mod b/go.mod index 4ce5d0a..634019a 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ toolchain go1.24.4 require ( github.com/SundaeSwap-finance/kugo v1.3.0 github.com/SundaeSwap-finance/ogmigo/v6 v6.0.2 - github.com/blinklabs-io/gouroboros v0.125.1 + github.com/blinklabs-io/gouroboros v0.127.0 github.com/btcsuite/btcd/btcutil v1.1.6 github.com/gen2brain/beeep v0.11.1 github.com/gin-gonic/gin v1.10.1 diff --git a/go.sum b/go.sum index 17eb019..517f90e 100644 --- a/go.sum +++ b/go.sum @@ -13,8 +13,8 @@ github.com/SundaeSwap-finance/ogmigo/v6 v6.0.2/go.mod h1:FgU9nAQNyi+ApWqXB+DKAcb github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII= github.com/aws/aws-sdk-go v1.55.6 h1:cSg4pvZ3m8dgYcgqB97MrcdjUmZ1BeMYKUxMMB89IPk= github.com/aws/aws-sdk-go v1.55.6/go.mod h1:eRwEWoyTWFMVYVQzKMNHWP5/RV4xIUGMQfXQHfHkpNU= -github.com/blinklabs-io/gouroboros v0.125.1 h1:ZhKgKvFEcz8OtGxGrEYh8A03nqS7+QWqDE+/sGKNKdA= -github.com/blinklabs-io/gouroboros v0.125.1/go.mod h1:LUGnvJ1iOmpCihNxT9fyZFf6KD5E45sV8ZqEUgljzDw= +github.com/blinklabs-io/gouroboros v0.127.0 h1:Zy+ZIMizxjL90WqexO5x0FFW8W7Nla/p45IS56xY/zw= +github.com/blinklabs-io/gouroboros v0.127.0/go.mod h1:LUGnvJ1iOmpCihNxT9fyZFf6KD5E45sV8ZqEUgljzDw= github.com/blinklabs-io/ouroboros-mock v0.3.8 h1:+DAt2rx0ouZUxee5DBMgZq3I1+ZdxFSHG9g3tYl/FKU= github.com/blinklabs-io/ouroboros-mock v0.3.8/go.mod h1:UwQIf4KqZwO13P9d90fbi3UL/X7JaJfeEbqk+bEeFQA= github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ= diff --git a/input/chainsync/block_test.go b/input/chainsync/block_test.go index f40f242..6d7be1e 100644 --- a/input/chainsync/block_test.go +++ b/input/chainsync/block_test.go @@ -81,8 +81,8 @@ func (m MockBlock) Transactions() []common.Transaction { return m.transactions } -func (m MockBlock) Utxorpc() *utxorpc.Block { - return nil +func (m MockBlock) Utxorpc() (*utxorpc.Block, error) { + return nil, nil } func (m MockBlock) IsShelley() bool { diff --git a/input/chainsync/transaction_output.go b/input/chainsync/transaction_output.go index 1c91ccc..5a3a9c3 100644 --- a/input/chainsync/transaction_output.go +++ b/input/chainsync/transaction_output.go @@ -153,6 +153,11 @@ func (txOut ResolvedTransactionOutput) DatumHash() *common.Blake2b256 { return nil } +func (txOut ResolvedTransactionOutput) ScriptRef() common.Script { + // Placeholder for script ref + return nil +} + func (txOut ResolvedTransactionOutput) Cbor() []byte { // Placeholder for CBOR serialization return []byte{}