-
Notifications
You must be signed in to change notification settings - Fork 199
/
interceptedTxHandlerStub.go
47 lines (38 loc) · 1.06 KB
/
interceptedTxHandlerStub.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package mock
import (
"math/big"
"github.com/ElrondNetwork/elrond-go-core/data"
)
// InterceptedTxHandlerStub -
type InterceptedTxHandlerStub struct {
SenderShardIdCalled func() uint32
ReceiverShardIdCalled func() uint32
NonceCalled func() uint64
SenderAddressCalled func() []byte
FeeCalled func() *big.Int
TransactionCalled func() data.TransactionHandler
}
// SenderShardId -
func (iths *InterceptedTxHandlerStub) SenderShardId() uint32 {
return iths.SenderShardIdCalled()
}
// ReceiverShardId -
func (iths *InterceptedTxHandlerStub) ReceiverShardId() uint32 {
return iths.ReceiverShardIdCalled()
}
// Nonce -
func (iths *InterceptedTxHandlerStub) Nonce() uint64 {
return iths.NonceCalled()
}
// SenderAddress -
func (iths *InterceptedTxHandlerStub) SenderAddress() []byte {
return iths.SenderAddressCalled()
}
// Fee -
func (iths *InterceptedTxHandlerStub) Fee() *big.Int {
return iths.FeeCalled()
}
// Transaction -
func (iths *InterceptedTxHandlerStub) Transaction() data.TransactionHandler {
return iths.TransactionCalled()
}