Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rearchitect declaration internals to support UDVTs #114

Merged
merged 1 commit into from
Jun 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules/
deps.pdf
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## vNext

### New features

- Rearchitect declaration internals to support UDVTs
([#114](https://github.com/gnidan/abi-to-sol/pull/114) by
[@gnidan](https://github.com/gnidan))

### Project updates

- Fix web UI deployment ([#112](https://github.com/gnidan/abi-to-sol/pull/112)
Expand Down
13 changes: 13 additions & 0 deletions packages/abi-to-sol/.madgerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"excludeRegExp": [
"\\.test\\.ts$",
"\/test\/"
],
"fileExtensions": ["js","ts"],
"detectiveOptions": {
"ts": {
"skipTypeImports": true
}
},
"tsConfig": "tsconfig.json"
}
4 changes: 0 additions & 4 deletions packages/abi-to-sol/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,6 @@ interface ENS {

```

## Currently unsupported (PRs welcome! :wink:)

- [User defined value types](https://blog.soliditylang.org/2021/09/27/user-defined-value-types/)

## Is this project useful to you?

Feel free to donate to
Expand Down
8 changes: 6 additions & 2 deletions packages/abi-to-sol/bin/abi-to-sol.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
#!/usr/bin/env node
import "source-map-support/register";

const neodoc = require("neodoc");
import {Abi as SchemaAbi} from "@truffle/contract-schema/spec";
import * as abiSchema from "@truffle/contract-schema/spec/abi.spec.json";
import betterAjvErrors from "better-ajv-errors";
import Ajv from "ajv";

import {generateSolidity, GenerateSolidityMode} from "../src";
import * as defaults from "../src/defaults";
import {
generateSolidity,
defaults,
GenerateSolidityMode
} from "../src";

const usage = `
abi-to-sol
Expand Down
10 changes: 6 additions & 4 deletions packages/abi-to-sol/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "abi-to-sol",
"version": "0.7.1",
"version": "0.8.0-0",
"description": "Compile ABI JSON to Solidity interface",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
Expand All @@ -15,6 +15,7 @@
"scripts": {
"abi-to-sol": "ts-node ./bin/abi-to-sol.ts",
"prepare": "tsc",
"madge": "madge ./src --image deps.pdf",
"test": "jest src/**",
"test:test": "jest test/**",
"test:dist": "yarn prepare && jest dist/src",
Expand All @@ -34,16 +35,17 @@
"@types/semver": "^7.3.7",
"change-case": "^4.1.1",
"faker": "^5.1.0",
"fast-check": "^3.1.1",
"fast-check": "3.1.1",
"husky": ">=4",
"jest": "^26.4.2",
"jest-fast-check": "^0.0.1",
"jest-json-schema": "^2.1.0",
"lint-staged": ">=10",
"solc": "^0.8.6",
"madge": "^5.0.2",
"solc": "^0.8.20",
"ts-jest": "^26.4.0",
"ts-node": "^9.0.0",
"typescript": "4.5.2"
"typescript": "^4.9.5"
},
"dependencies": {
"@truffle/abi-utils": "^1.0.0",
Expand Down
151 changes: 0 additions & 151 deletions packages/abi-to-sol/src/declarations.test.ts

This file was deleted.

Loading
Loading