Preparing search index...
The search index is not available
@ordao/orclient
@ordao/orclient
ORContext
Class ORContext
Hierarchy
ORContext
<
ConfigWithOrnode
>
ORContext
Index
Constructors
constructor
Accessors
error
Decoder
fungible
Id
new
Respect
orec
ornode
runner
Methods
connect
get
New
Respect
Addr
get
Old
Respect
Addr
get
Orec
Addr
get
Proposal
From
Chain
switch
Signer
try
Get
Prop
From
Chain
validate
create
Constructors
constructor
new ORContext
(
state
,
runner
,
validate
?
)
:
ORContext
Parameters
state
:
StateWithOrnode
runner
:
ContractRunner
Optional
validate
:
boolean
Returns
ORContext
Accessors
error
Decoder
get
errorDecoder
(
)
:
ErrorDecoder
Returns
ErrorDecoder
fungible
Id
get
fungibleId
(
)
:
bigint
Returns
bigint
new
Respect
get
newRespect
(
)
:
Respect1155
Returns
Respect1155
orec
get
orec
(
)
:
Orec
Returns
Orec
ornode
get
ornode
(
)
:
StateForConfig
<
CT
>
[
"ornode"
]
Returns
StateForConfig
<
CT
>
[
"ornode"
]
runner
get
runner
(
)
:
ContractRunner
Returns
ContractRunner
Methods
connect
connect
(
signer
)
:
ORContext
<
ConfigWithOrnode
>
Parameters
signer
:
Signer
Returns
ORContext
<
ConfigWithOrnode
>
get
New
Respect
Addr
get
New
Respect
Addr
(
)
:
Promise
<
string
>
Returns
Promise
<
string
>
get
Old
Respect
Addr
get
Old
Respect
Addr
(
)
:
Promise
<
string
>
Returns
Promise
<
string
>
get
Orec
Addr
get
Orec
Addr
(
)
:
Promise
<
string
>
Returns
Promise
<
string
>
get
Proposal
From
Chain
get
Proposal
From
Chain
(
id
)
:
Promise
<
{
createTime
:
Date
;
id
:
string
;
noWeight
:
bigint
;
stage
:
Stage
;
voteStatus
:
VoteStatus
;
yesWeight
:
bigint
;
}
>
Parameters
id
:
string
Returns
Promise
<
{
createTime
:
Date
;
id
:
string
;
noWeight
:
bigint
;
stage
:
Stage
;
voteStatus
:
VoteStatus
;
yesWeight
:
bigint
;
}
>
switch
Signer
switch
Signer
(
signer
)
:
void
Parameters
signer
:
Signer
Returns
void
try
Get
Prop
From
Chain
try
Get
Prop
From
Chain
(
id
)
:
Promise
<
undefined
|
{
createTime
:
Date
;
id
:
string
;
noWeight
:
bigint
;
stage
:
Stage
;
voteStatus
:
VoteStatus
;
yesWeight
:
bigint
;
}
>
Parameters
id
:
string
Returns
Promise
<
undefined
|
{
createTime
:
Date
;
id
:
string
;
noWeight
:
bigint
;
stage
:
Stage
;
voteStatus
:
VoteStatus
;
yesWeight
:
bigint
;
}
>
validate
validate
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Static
create
create
<
CT_
>
(
config
)
:
Promise
<
ORContext
<
CT_
>
>
Type Parameters
CT_
extends
Config
Parameters
config
:
CT_
Returns
Promise
<
ORContext
<
CT_
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Accessors
error
Decoder
fungible
Id
new
Respect
orec
ornode
runner
Methods
connect
get
New
Respect
Addr
get
Old
Respect
Addr
get
Orec
Addr
get
Proposal
From
Chain
switch
Signer
try
Get
Prop
From
Chain
validate
create
@ordao/orclient
Loading...