Skip to content

Commit 84e7bef

Browse files
Merge pull request #3 from deno-web3/update-with-upstream
Update with upstream
2 parents 3d76b77 + ba97409 commit 84e7bef

File tree

21 files changed

+888
-569
lines changed

21 files changed

+888
-569
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ jobs:
1212
test:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616

1717
- name: Cache dependencies
18-
uses: actions/cache@v3
18+
uses: actions/cache@v4
1919
with:
2020
key: ${{ runner.os }}-deno-${{ hashFiles('**/*') }}
2121
restore-keys: ${{ runner.os }}-deno-
2222
path: /home/runner/.cache/deno/deps/https/deno.land
2323

24-
- uses: denoland/setup-deno@v1
24+
- uses: denoland/setup-deno@v2
2525
with:
26-
deno-version: v1.x
26+
deno-version: v2.x
2727

2828
- name: fetch any uncached dependencies
2929
run: |

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
*.js
2+
*.cjs
23
coverage*

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<div align="center">
22

3-
<img alt="logo" height="250px" src="https://bafkreicd4u5jhqcnhztqhi3dkvefx3ccooimkqca33ipjo4njyzfus5nfu.ipfs.dweb.link" />
3+
<img alt="logo" height="250px" src="./logo.png" />
44

55
# solc
66

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]
88
[![Codecov][cov-badge-url]][cov-url] [![][code-quality-img]][code-quality]
99

1010
</div>
@@ -22,15 +22,15 @@ See [solc-js README](https://github.com/ethereum/solc-js#readme) and [Deno doc](
2222
## Example
2323

2424
```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'
2828
import { createRequire } from 'node:module'
2929

3030
// Download latest Solidity compiler
3131
await download()
3232

33-
const solc = wrapper(createRequire(import.meta.url)('./soljson.js'))
33+
const solc = wrapper(createRequire(import.meta.url)('./soljson.cjs'))
3434

3535
const MyToken = await Deno.readTextFile('./MyToken.sol')
3636
const ERC20 = await Deno.readTextFile('./ERC20.sol')
@@ -64,7 +64,6 @@ deno run --allow-net --allow-read --allow-write mod.ts
6464

6565
[code-quality-img]: https://img.shields.io/codefactor/grade/github/deno-web3/solc?style=for-the-badge&color=626890&
6666
[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
6867
[cov-badge-url]: https://img.shields.io/coveralls/github/deno-web3/solc?style=for-the-badge&color=626890&
6968
[cov-url]: https://coveralls.io/github/deno-web3/solc
7069
[github-actions]: https://github.com/tinyhttp/deno-web3/solc

bindings.ts

Lines changed: 0 additions & 273 deletions
This file was deleted.

0 commit comments

Comments
 (0)