File tree Expand file tree Collapse file tree 5 files changed +19
-9
lines changed Expand file tree Collapse file tree 5 files changed +19
-9
lines changed Original file line number Diff line number Diff line change @@ -91,10 +91,11 @@ func (m *MockAddress) UnmarshalCBOR(data []byte) error {
91
91
92
92
// MockOutput is a mock implementation of the TransactionOutput interface
93
93
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
98
99
}
99
100
100
101
func (m MockOutput ) Address () ledger.Address {
@@ -117,6 +118,10 @@ func (m MockOutput) DatumHash() *common.Blake2b256 {
117
118
return nil
118
119
}
119
120
121
+ func (m MockOutput ) ScriptRef () common.Script {
122
+ return m .scriptRef
123
+ }
124
+
120
125
func (m MockOutput ) Cbor () []byte {
121
126
return []byte {}
122
127
}
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ toolchain go1.24.4
7
7
require (
8
8
github.com/SundaeSwap-finance/kugo v1.3.0
9
9
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
11
11
github.com/btcsuite/btcd/btcutil v1.1.6
12
12
github.com/gen2brain/beeep v0.11.1
13
13
github.com/gin-gonic/gin v1.10.1
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ github.com/SundaeSwap-finance/ogmigo/v6 v6.0.2/go.mod h1:FgU9nAQNyi+ApWqXB+DKAcb
13
13
github.com/aead/siphash v1.0.1 /go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII =
14
14
github.com/aws/aws-sdk-go v1.55.6 h1:cSg4pvZ3m8dgYcgqB97MrcdjUmZ1BeMYKUxMMB89IPk =
15
15
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 =
18
18
github.com/blinklabs-io/ouroboros-mock v0.3.8 h1:+DAt2rx0ouZUxee5DBMgZq3I1+ZdxFSHG9g3tYl/FKU =
19
19
github.com/blinklabs-io/ouroboros-mock v0.3.8 /go.mod h1:UwQIf4KqZwO13P9d90fbi3UL/X7JaJfeEbqk+bEeFQA =
20
20
github.com/btcsuite/btcd v0.20.1-beta /go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ =
Original file line number Diff line number Diff line change @@ -81,8 +81,8 @@ func (m MockBlock) Transactions() []common.Transaction {
81
81
return m .transactions
82
82
}
83
83
84
- func (m MockBlock ) Utxorpc () * utxorpc.Block {
85
- return nil
84
+ func (m MockBlock ) Utxorpc () ( * utxorpc.Block , error ) {
85
+ return nil , nil
86
86
}
87
87
88
88
func (m MockBlock ) IsShelley () bool {
Original file line number Diff line number Diff line change @@ -153,6 +153,11 @@ func (txOut ResolvedTransactionOutput) DatumHash() *common.Blake2b256 {
153
153
return nil
154
154
}
155
155
156
+ func (txOut ResolvedTransactionOutput ) ScriptRef () common.Script {
157
+ // Placeholder for script ref
158
+ return nil
159
+ }
160
+
156
161
func (txOut ResolvedTransactionOutput ) Cbor () []byte {
157
162
// Placeholder for CBOR serialization
158
163
return []byte {}
You can’t perform that action at this time.
0 commit comments