@groovy.transform.Trait trait OmniTestSupport extends Object implements foundation.omni.rpc.test.OmniTestClientAccessor, FundingSourceAccessor, BTCTestSupport
Test support functions intended to be mixed-in to Spock test specs
| Type | Name and description |
|---|---|
static org.slf4j.Logger |
log |
| Type Params | Return Type | Name and description |
|---|---|---|
|
Address |
createFundedAddress(Coin requestedBTC, foundation.omni.OmniValue requestedOmni) |
|
Address |
createFundedAddress(Coin requestedBTC, foundation.omni.OmniValue requestedOmni, Boolean confirmTransactions) |
|
void |
delayAfterInvalidate()Delay long enough to avoid Duplicate block errors when resubmitting blocks in RegTest mode after invalidating a block. |
|
foundation.omni.CurrencyID |
fundManagedProperty(Address address, foundation.omni.PropertyType type, foundation.omni.Ecosystem ecosystem) |
|
foundation.omni.CurrencyID |
fundNewProperty(Address address, foundation.omni.OmniValue amount, foundation.omni.Ecosystem ecosystem) |
|
void |
longerDelayAfterInvalidate()Longer delay to avoid Duplicate block errors when resubmitting blocks in RegTest mode after invalidating a block. |
|
Sha256Hash |
requestOmni(Address toAddress, foundation.omni.OmniDivisibleValue requestedOmni) |
|
Sha256Hash |
requestOmni(Address toAddress, foundation.omni.OmniDivisibleValue requestedOmni, Boolean allowIntermediate)Request OMNI/Omni for testing |
Delay long enough to avoid Duplicate block errors when resubmitting blocks in RegTest mode after invalidating a block. See OmniJ Issue #185.
Longer delay to avoid Duplicate block errors when resubmitting blocks in RegTest mode after invalidating a block. See OmniJ Issue #185.
Request OMNI/Omni for testing TODO: Convert parameters and math to use OmniValue/Long
toAddress - Address requesting OMNI/OmnirequestedOmni - Amount requestedallowIntermediate - allow intermediate receiver