Preparing search index...
The search index is not available
OPNet
OPNet
IContract
Interface IContract
Description
This interface is used to define a contract. IContract
interface
IContract
{
address
:
BitcoinAddressLike
;
decodeEvent
(
event
:
NetEvent
)
:
OPNetEvent
<
{}
>
;
decodeEvents
(
events
:
ContractEvents
|
NetEvent
[]
)
:
OPNetEvent
<
{}
>
[]
;
encodeCalldata
(
method
:
string
,
...
args
:
unknown
[]
)
:
Buffer
;
setSender
(
sender
:
BitcoinAddressLike
)
:
void
;
}
Hierarchy (
view full
)
IContract
BaseContractProperties
Implemented by
IBaseContract
Index
Properties
address
Methods
decode
Event
decode
Events
encode
Calldata
set
Sender
Properties
Readonly
address
address
:
BitcoinAddressLike
Methods
decode
Event
decode
Event
(
event
)
:
OPNetEvent
<
{}
>
Parameters
event
:
NetEvent
Returns
OPNetEvent
<
{}
>
decode
Events
decode
Events
(
events
)
:
OPNetEvent
<
{}
>
[]
Parameters
events
:
ContractEvents
|
NetEvent
[]
Returns
OPNetEvent
<
{}
>
[]
encode
Calldata
encode
Calldata
(
method
,
...
args
)
:
Buffer
Parameters
method
:
string
Rest
...
args
:
unknown
[]
Returns
Buffer
set
Sender
set
Sender
(
sender
)
:
void
Parameters
sender
:
BitcoinAddressLike
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
address
Methods
decode
Event
decode
Events
encode
Calldata
set
Sender
OPNet
Loading...
Description
This interface is used to define a contract. IContract