Preparing search index...
The search index is not available
@staratlas/data-source
@staratlas/data-source
ListenProgram
Class ListenProgram<Accounts, IDL>
Abstract
Type Parameters
Accounts
extends
Record
<
string
,
Account
>
IDL
extends
Idl
Hierarchy
ListenProgram
Index
Constructors
constructor
Properties
account
Closed
Listener
account
Discriminants
parsers
program
Accessors
program
Id
Methods
account
Discriminant
discriminant
To
Account
Id
discriminant
To
Account
Id
No
Subarray
provide
Account
Closed
Event
provide
Account
Event
provide
Decoded
Account
Event
set
Account
Closed
Listener
set
Account
Listener
Constructors
Protected
constructor
new
Listen
Program
<
Accounts
,
IDL
>
(
program
,
parsers
)
:
ListenProgram
<
Accounts
,
IDL
>
Type Parameters
Accounts
extends
Record
<
string
,
Account
>
IDL
extends
Idl
Parameters
program
:
ProgramMethods
<
IDL
>
parsers
:
{
[
K
in
string
]
:
(
new
(
...
args
)
=>
Accounts
[
K
]
&
Account
)
&
AccountStatic
<
Accounts
[
K
]
,
IDL
>
}
Returns
ListenProgram
<
Accounts
,
IDL
>
Properties
Protected
account
Closed
Listener
account
Closed
Listener
:
null
|
(
(
update
)
=>
void
)
= null
Type declaration
(
update
)
:
void
Parameters
update
:
AccountClosedUpdate
Returns
void
Protected
Readonly
account
Discriminants
account
Discriminants
:
{
[
K
in
string
|
number
|
symbol
]
:
Readonly
<
Buffer
>
}
Protected
parsers
parsers
:
{
[
K
in
string
]
:
(
new
(
...
args
)
=>
Accounts
[
K
]
&
Account
)
&
AccountStatic
<
Accounts
[
K
]
,
IDL
>
}
Protected
program
program
:
ProgramMethods
<
IDL
>
Accessors
program
Id
get
programId
(
)
:
PublicKey
Returns
PublicKey
Methods
account
Discriminant
account
Discriminant
(
accountId
)
:
Buffer
Parameters
accountId
:
keyof
Accounts
Returns
Buffer
discriminant
To
Account
Id
discriminant
To
Account
Id
(
data
)
:
null
|
{
discriminantLength
:
number
;
key
:
keyof
Accounts
&
string
;
}
Parameters
data
:
Buffer
Returns
null
|
{
discriminantLength
:
number
;
key
:
keyof
Accounts
&
string
;
}
discriminant
To
Account
Id
No
Subarray
discriminant
To
Account
Id
No
Subarray
(
discriminant
)
:
null
|
{
discriminantLength
:
number
;
key
:
keyof
Accounts
&
string
;
}
Parameters
discriminant
:
Buffer
Returns
null
|
{
discriminantLength
:
number
;
key
:
keyof
Accounts
&
string
;
}
provide
Account
Closed
Event
provide
Account
Closed
Event
(
key
,
oldOwner
,
newOwner
,
slot
,
confirmationStatus
,
writeVersion
,
accountInfo
)
:
void
Parameters
key
:
PublicKey
oldOwner
:
PublicKey
newOwner
:
PublicKey
slot
:
number
confirmationStatus
:
TransactionConfirmationStatus
|
"recent"
writeVersion
:
number
accountInfo
:
AccountInfo
<
Buffer
>
Returns
void
provide
Account
Event
provide
Account
Event
(
account
,
slot
,
confirmationStatus
,
isStartup
,
writeVersion
,
unknownAccountHandler
?
)
:
void
Parameters
account
:
KeyedAccountInfo
slot
:
number
confirmationStatus
:
TransactionConfirmationStatus
|
"recent"
isStartup
:
boolean
writeVersion
:
number
unknownAccountHandler
:
(
(
key
)
=>
void
)
= ...
(
key
)
:
void
Parameters
key
:
PublicKey
Returns
void
Returns
void
provide
Decoded
Account
Event
provide
Decoded
Account
Event
<
AccountId
>
(
accountId
,
account
,
slot
,
confirmationStatus
,
isStartup
,
accountInfo
,
writeVersion
)
:
void
Type Parameters
AccountId
extends
string
|
number
|
symbol
Parameters
accountId
:
AccountId
account
:
Accounts
[
AccountId
]
slot
:
number
confirmationStatus
:
TransactionConfirmationStatus
|
"recent"
isStartup
:
boolean
accountInfo
:
AccountInfo
<
Buffer
>
writeVersion
:
number
Returns
void
set
Account
Closed
Listener
set
Account
Closed
Listener
(
listener
)
:
void
Parameters
listener
:
(
(
update
)
=>
null
|
void
)
(
update
)
:
null
|
void
Parameters
update
:
AccountClosedUpdate
Returns
null
|
void
Returns
void
set
Account
Listener
set
Account
Listener
<
AccountId
>
(
accountId
,
accountType
,
listener
)
:
void
Type Parameters
AccountId
extends
string
|
number
|
symbol
Parameters
accountId
:
AccountId
accountType
:
(
new
(
...
args
)
=>
Accounts
[
AccountId
]
)
new
(
...
args
)
:
Accounts
[
AccountId
]
Parameters
Rest
...
args
:
never
[]
Returns
Accounts
[
AccountId
]
listener
:
null
|
AccountUpdateHandler
<
Accounts
[
AccountId
]
>
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
account
Closed
Listener
account
Discriminants
parsers
program
program
Id
account
Discriminant
discriminant
To
Account
Id
discriminant
To
Account
Id
No
Subarray
provide
Account
Closed
Event
provide
Account
Event
provide
Decoded
Account
Event
set
Account
Closed
Listener
set
Account
Listener
@staratlas/data-source
ListenProgram
TransactionBuilder
TransactionBuilderCore
Account
AccountStatic
AsyncSigner
CustomAnchorError
DataSource
ListenProgramStatic
PdaAccountStatic
TransactionSender
AccountClosedUpdate
AccountUpdate
AccountUpdateHandler
AfterIx
AnchorAccounts
AnchorDefined
AnchorError
AnchorProgram
AnchorState
AnchorTypes
Loading...
Generated using
TypeDoc