@@ -70,28 +70,28 @@ func (t TxConfStatus) String() string {
7070 }
7171}
7272
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
7474// 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
7777 // will include the block that mined the transaction.
78- includeBlock bool
78+ IncludeBlock bool
7979}
8080
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 {}
8484}
8585
8686// NotifierOption is a functional option that allows a caller to modify the
8787// events received from the notifier.
88- type NotifierOption func (* notifierOptions )
88+ type NotifierOption func (* NotifierOptions )
8989
90- // WithIncludeBlock is an optional argument that allows the calelr to specify
90+ // WithIncludeBlock is an optional argument that allows the caller to specify
9191// that the block that mined a transaction should be included in the response.
9292func WithIncludeBlock () NotifierOption {
93- return func (o * notifierOptions ) {
94- o .includeBlock = true
93+ return func (o * NotifierOptions ) {
94+ o .IncludeBlock = true
9595 }
9696}
9797
0 commit comments