UNPKG
@pythnetwork/client
Version:
latest (2.22.1)
2.22.1
2.22.0
2.21.1
2.21.0
2.20.0
2.19.0
2.18.0
2.17.0
2.16.0
2.15.0
2.14.0
2.13.1
2.13.0
2.12.0
2.11.0
2.10.0
2.9.0
2.8.0
2.7.3
2.7.2
2.7.1
2.7.0
2.6.3
2.6.1
2.6.0
2.5.3
2.5.1
2.5.0
2.4.0
2.3.2
2.3.1
2.3.0
2.2.0
2.1.0
2.0.1
2.0.0
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
Client for consuming Pyth price data
pyth.network
pyth-network/pyth-client-js
@pythnetwork/client
/
lib
/
anchor
/
coder
/
state.d.ts
7 lines
(6 loc)
•
250 B
TypeScript
View Raw
1
2
3
4
5
6
7
/// <reference types="node" />
import
{
StateCoder
}
from
'@coral-xyz/anchor'
;
export
declare
class
PythOracleStateCoder
implements
StateCoder
{ encode<T =
any
>(
_name
:
string
,
_account
: T):
Promise
<
Buffer
>; decode<T =
any
>(
_ix
:
Buffer
): T; }