Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aztec/foundation

Package Overview
Dependencies
Maintainers
6
Versions
163
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aztec/foundation - npm Package Compare versions

Comparing version 0.28.1 to 0.29.0

4

dest/abi/function_selector.d.ts

@@ -18,2 +18,6 @@ /// <reference types="node" resolution-mode="require"/>

*/
equals(fn: {
name: string;
parameters: ABIParameter[];
}): boolean;
equals(otherName: string, otherParams: ABIParameter[]): boolean;

@@ -20,0 +24,0 @@ equals(other: FunctionSelector): boolean;

9

dest/abi/function_selector.js

@@ -13,3 +13,8 @@ import { fromHex, toBigIntBE } from '../bigint-buffer/index.js';

}
return this.value === other.value;
else if (typeof other === 'object' && 'name' in other) {
return this.equals(FunctionSelector.fromNameAndParameters(other.name, other.parameters));
}
else {
return this.value === other.value;
}
}

@@ -87,2 +92,2 @@ /**

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnVuY3Rpb25fc2VsZWN0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYWJpL2Z1bmN0aW9uX3NlbGVjdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFDaEUsT0FBTyxFQUFFLE1BQU0sRUFBRSxXQUFXLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUV6RCxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sK0JBQStCLENBQUM7QUFDN0QsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLDhCQUE4QixDQUFDO0FBRTNELE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUN2RCxPQUFPLEVBQUUsUUFBUS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,3 @@ "type": "module",

"dependencies": {
"@aztec/bb.js": "0.28.1",
"@aztec/bb.js": "0.29.0",
"@koa/cors": "^4.0.0",

@@ -67,0 +67,0 @@ "@noble/curves": "^1.2.0",

@@ -24,9 +24,16 @@ import { fromHex, toBigIntBE } from '../bigint-buffer/index.js';

*/
equals(fn: { name: string; parameters: ABIParameter[] }): boolean;
equals(otherName: string, otherParams: ABIParameter[]): boolean;
equals(other: FunctionSelector): boolean;
equals(other: FunctionSelector | string, otherParams?: ABIParameter[]): boolean {
equals(
other: FunctionSelector | string | { name: string; parameters: ABIParameter[] },
otherParams?: ABIParameter[],
): boolean {
if (typeof other === 'string') {
return this.equals(FunctionSelector.fromNameAndParameters(other, otherParams!));
} else if (typeof other === 'object' && 'name' in other) {
return this.equals(FunctionSelector.fromNameAndParameters(other.name, other.parameters));
} else {
return this.value === other.value;
}
return this.value === other.value;
}

@@ -33,0 +40,0 @@

Sorry, the diff of this file is not supported yet

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