Skip to content

Commit

Permalink
rename to evm-codec
Browse files Browse the repository at this point in the history
  • Loading branch information
vanruch committed Mar 24, 2024
1 parent 1b7f049 commit cb6ca1e
Show file tree
Hide file tree
Showing 23 changed files with 13 additions and 7 deletions.
3 changes: 3 additions & 0 deletions evm/evm-codec/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# @subsquid/evm-codec

Encoder and decoder for EVM arguments
2 changes: 1 addition & 1 deletion evm/evm-utils/package.json → evm/evm-codec/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@subsquid/evm-utils",
"name": "@subsquid/evm-codec",
"version": "0.0.0",
"description": "EVM encoder/decoder tools",
"license": "GPL-3.0-or-later",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { bytes, bytes32 } from "../codecs/primitives";
import { bytes32 } from "../codecs/primitives";
import { Src } from "../src";
import { IndexedCodec, ParsedNamedCodecList } from "../codec";

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { describe, expect, it } from "vitest";
import { AbiParameter, encodeAbiParameters } from "viem";
import {
address,
arg,
array,
bytes4,
int8,
Expand All @@ -9,8 +11,6 @@ import {
struct,
uint256,
} from "../src";
import { AbiParameter, encodeAbiParameters } from "viem";
import { arg } from "../src/utils";

function compareTypes(sink: Sink, types: AbiParameter[], values: any[]) {
expect(sink.toString()).toEqual(encodeAbiParameters(types, values));
Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 0 additions & 3 deletions evm/evm-utils/README.md

This file was deleted.

6 changes: 6 additions & 0 deletions rush.json
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,12 @@
"shouldPublish": true,
"versionPolicyName": "npm"
},
{
"packageName": "@subsquid/evm-codec",
"projectFolder": "evm/evm-codec",
"shouldPublish": true,
"versionPolicyName": "npm"
},
{
"packageName": "@subsquid/evm-typegen",
"projectFolder": "evm/evm-typegen",
Expand Down

0 comments on commit cb6ca1e

Please sign in to comment.