Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions filter/chainsync/chainsync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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{}
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
4 changes: 2 additions & 2 deletions input/chainsync/block_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
5 changes: 5 additions & 0 deletions input/chainsync/transaction_output.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down
Loading