1
1
<div align =" center " >
2
2
3
- <img alt =" logo " height =" 250px " src =" https://bafkreicd4u5jhqcnhztqhi3dkvefx3ccooimkqca33ipjo4njyzfus5nfu.ipfs.dweb.link " />
3
+ <img alt =" logo " height =" 250px " src =" ./logo.png " />
4
4
5
5
# solc
6
6
7
- [ ![ nest badge ] [ nest-badge ]] ( https://nest.land/package/solc ) [ ![ GitHub Workflow Status] [ gh-actions-img ]] [ github-actions ]
7
+ [ ![ GitHub Workflow Status] [ gh-actions-img ]] [ github-actions ]
8
8
[ ![ Codecov] [ cov-badge-url ]] [ cov-url ] [ ![ ] [ code-quality-img ]] [ code-quality ]
9
9
10
10
</div >
@@ -22,15 +22,15 @@ See [solc-js README](https://github.com/ethereum/solc-js#readme) and [Deno doc](
22
22
## Example
23
23
24
24
``` ts
25
- import { wrapper } from ' https:// deno.land/x/ solc/mod.ts '
26
- import { Input } from ' https:// deno.land/x/ solc/types.ts '
27
- import { download } from ' https:// deno.land/x/ solc/download.ts '
25
+ import { wrapper } from ' @ deno-web3/ solc'
26
+ import { Input } from ' @ deno-web3/ solc/types'
27
+ import { download } from ' @ deno-web3/ solc/download'
28
28
import { createRequire } from ' node:module'
29
29
30
30
// Download latest Solidity compiler
31
31
await download ()
32
32
33
- const solc = wrapper (createRequire (import .meta .url )(' ./soljson.js ' ))
33
+ const solc = wrapper (createRequire (import .meta .url )(' ./soljson.cjs ' ))
34
34
35
35
const MyToken = await Deno .readTextFile (' ./MyToken.sol' )
36
36
const ERC20 = await Deno .readTextFile (' ./ERC20.sol' )
@@ -64,7 +64,6 @@ deno run --allow-net --allow-read --allow-write mod.ts
64
64
65
65
[ code-quality-img ] : https://img.shields.io/codefactor/grade/github/deno-web3/solc?style=for-the-badge&color=626890&
66
66
[ code-quality ] : https://www.codefactor.io/repository/github/deno-web3/solc
67
- [ nest-badge ] : https://img.shields.io/badge/publushed%20on-nest.land-626890?style=for-the-badge
68
67
[ cov-badge-url ] : https://img.shields.io/coveralls/github/deno-web3/solc?style=for-the-badge&color=626890&
69
68
[ cov-url ] : https://coveralls.io/github/deno-web3/solc
70
69
[ github-actions ] : https://github.com/tinyhttp/deno-web3/solc
0 commit comments