New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

trim-evm

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trim-evm - npm Package Compare versions

Comparing version 0.11.0 to 0.12.0

dist/templates/static-router.d.ts

9

dist/index.d.ts

@@ -1,4 +0,11 @@

export { compileTrim } from './trim/index.js';
import { compileTrim } from './trim/index.js';
export { compileBasm } from './basm.js';
export { getOpcodesForTrim } from './interop.js';
export { debugDecompileToBasm } from './decompile.js';
export { makeStaticRouter } from './templates/static-router.js';
export { makeStubbedContract } from './templates/stubbed-contract.js';
type TemplateFn = (strings: TemplateStringsArray, ...values: any[]) => string;
export declare const trim: TemplateFn & {
source: TemplateFn;
compile: typeof compileTrim;
};

@@ -1,4 +0,19 @@

export { compileTrim } from './trim/index.js';
import { compileTrim } from './trim/index.js';
export { compileBasm } from './basm.js';
export { getOpcodesForTrim } from './interop.js';
export { debugDecompileToBasm } from './decompile.js';
export { makeStaticRouter } from './templates/static-router.js';
export { makeStubbedContract } from './templates/stubbed-contract.js';
//
// Support syntaxes:
// trim`...`
// trim.compile(trim.source`...`, options)
//
function templateTag(strings, ...values) {
return String.raw(strings, ...values);
}
export const trim = function (...args) {
return templateTag(...args);
};
trim.source = templateTag;
trim.compile = compileTrim;

@@ -41,1 +41,19 @@ export type ToplevelSexp = SexpNode[];

};
export interface AbiJsonFragmentType {
readonly name?: string;
readonly indexed?: boolean;
readonly type?: string;
readonly internalType?: any;
readonly components?: ReadonlyArray<AbiJsonFragmentType>;
}
export interface AbiJsonFragment {
readonly name?: string;
readonly type?: string;
readonly anonymous?: boolean;
readonly payable?: boolean;
readonly constant?: boolean;
readonly stateMutability?: string;
readonly inputs?: ReadonlyArray<AbiJsonFragmentType>;
readonly outputs?: ReadonlyArray<AbiJsonFragmentType>;
readonly gas?: string;
}

2

package.json
{
"name": "trim-evm",
"version": "0.11.0",
"version": "0.12.0",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -43,5 +43,5 @@ # Trim

```js
import { compileTrim } from 'trim-evm'
import { trim } from 'trim-evm'
const bytecode = compileTrim('(ADD 0x00 0x01)')
const bytecode = trim`(ADD 0x00 0x01)`

@@ -51,2 +51,13 @@ console.log("Compile success! Resulting bytecode:", bytecode)

If you need to configure opcodes:
```js
import { trim } from 'trim-evm'
const bytecode = trim.compile(trim.source`(ADD 0x00 0x01)`, {
opcodes: ...,
opcodesMetadata: ...,
})
```
## Sample

@@ -53,0 +64,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc