@@ -70,28 +70,28 @@ func (t TxConfStatus) String() string {
70
70
}
71
71
}
72
72
73
- // notifierOptions is a set of functional options that allow callers to further
73
+ // NotifierOptions is a set of functional options that allow callers to further
74
74
// modify the type of chain event notifications they receive.
75
- type notifierOptions struct {
76
- // includeBlock if true, then the dispatched confirmation notification
75
+ type NotifierOptions struct {
76
+ // IncludeBlock if true, then the dispatched confirmation notification
77
77
// will include the block that mined the transaction.
78
- includeBlock bool
78
+ IncludeBlock bool
79
79
}
80
80
81
- // defaultNotifierOptions returns the set of default options for the notifier.
82
- func defaultNotifierOptions () * notifierOptions {
83
- return & notifierOptions {}
81
+ // DefaultNotifierOptions returns the set of default options for the notifier.
82
+ func DefaultNotifierOptions () * NotifierOptions {
83
+ return & NotifierOptions {}
84
84
}
85
85
86
86
// NotifierOption is a functional option that allows a caller to modify the
87
87
// events received from the notifier.
88
- type NotifierOption func (* notifierOptions )
88
+ type NotifierOption func (* NotifierOptions )
89
89
90
- // WithIncludeBlock is an optional argument that allows the calelr to specify
90
+ // WithIncludeBlock is an optional argument that allows the caller to specify
91
91
// that the block that mined a transaction should be included in the response.
92
92
func WithIncludeBlock () NotifierOption {
93
- return func (o * notifierOptions ) {
94
- o .includeBlock = true
93
+ return func (o * NotifierOptions ) {
94
+ o .IncludeBlock = true
95
95
}
96
96
}
97
97
0 commit comments