UNPKG
@metaplex-foundation/umi-web3js-adapters
Version:
latest (1.2.0)
rc (0.8.2-rc.1)
1.2.0
1.1.1
1.1.0
1.0.0
0.9.2
0.9.1
0.9.0
0.8.10
0.8.9
0.8.8
0.8.7
0.8.6
0.8.5
0.8.4
0.8.2
0.8.2-rc.1
0.8.2-rc.0
0.8.1
0.8.0
0.8.0-rc.1
0.8.0-rc.0
0.7.14
0.7.13
0.7.12
0.7.11
0.7.10
0.7.7
0.7.6
0.7.5
0.7.4
0.7.2
0.7.0
0.6.0
0.5.3
0.5.2
0.5.1
0.4.1
0.4.0
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.3
0.2.2
0.2.1
0.2.0
0.1.2
0.1.1
0.1.0
A helper package to transform web3.js types to and from umi types
metaplex.com
@metaplex-foundation/umi-web3js-adapters
/
dist
/
esm
/
PublicKey.mjs
12 lines
(9 loc)
•
289 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
{
PublicKey
}
from
'@solana/web3.js'
;
function
fromWeb3JsPublicKey
(
publicKey
) {
return
publicKey.
toBase58
(); }
function
toWeb3JsPublicKey
(
publicKey
) {
return
new
PublicKey
(publicKey); }
export
{ fromWeb3JsPublicKey, toWeb3JsPublicKey };
//# sourceMappingURL=PublicKey.mjs.map