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

@web3api/ethereum-plugin-js

Package Overview
Dependencies
Maintainers
2
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web3api/ethereum-plugin-js - npm Package Compare versions

Comparing version 0.0.1-prealpha.46 to 0.0.1-prealpha.47

1

build/index.d.ts

@@ -29,2 +29,3 @@ import { Query, Mutation } from "./w3";

encodeParams(input: Query.Input_encodeParams): string;
encodeFunction(input: Query.Input_encodeFunction): string;
getSignerAddress(input: Query.Input_getSignerAddress): Promise<string>;

@@ -31,0 +32,0 @@ getSignerBalance(input: Query.Input_getSignerBalance): Promise<string>;

@@ -297,2 +297,6 @@ "use strict";

};
EthereumPlugin.prototype.encodeFunction = function (input) {
var functionInterface = ethers_1.ethers.Contract.getInterface([input.method]);
return functionInterface.encodeFunctionData(functionInterface.functions[Object.keys(functionInterface.functions)[0]], input.args || undefined);
};
EthereumPlugin.prototype.getSignerAddress = function (input) {

@@ -299,0 +303,0 @@ return __awaiter(this, void 0, void 0, function () {

@@ -93,2 +93,7 @@ "use strict";

}); },
encodeFunction: function (input) { return __awaiter(void 0, void 0, void 0, function () {
return __generator(this, function (_a) {
return [2 /*return*/, plugin.encodeFunction(input)];
});
}); },
getSignerAddress: function (input) { return __awaiter(void 0, void 0, void 0, function () {

@@ -95,0 +100,0 @@ return __generator(this, function (_a) {

@@ -21,2 +21,6 @@ import { UInt32, BigInt, String, Boolean } from "./types";

}
export interface Input_encodeFunction extends Record<string, unknown> {
method: String;
args?: Array<String> | null;
}
export interface Input_getSignerAddress extends Record<string, unknown> {

@@ -73,2 +77,3 @@ connection?: Types.Connection | null;

encodeParams(input: Input_encodeParams, client: Client): MaybeAsync<String>;
encodeFunction(input: Input_encodeFunction, client: Client): MaybeAsync<String>;
getSignerAddress(input: Input_getSignerAddress, client: Client): MaybeAsync<String>;

@@ -75,0 +80,0 @@ getSignerBalance(input: Input_getSignerBalance, client: Client): MaybeAsync<BigInt>;

2

build/w3/schema.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.schema = void 0;
exports.schema = "### Web3API Header START ###\nscalar UInt\nscalar UInt8\nscalar UInt16\nscalar UInt32\nscalar Int\nscalar Int8\nscalar Int16\nscalar Int32\nscalar Bytes\nscalar BigInt\nscalar JSON\n\ndirective @imported(\n uri: String!\n namespace: String!\n nativeType: String!\n) on OBJECT | ENUM\n\ndirective @imports(\n types: [String!]!\n) on OBJECT\n### Web3API Header END ###\n\ntype Query {\n callContractView(\n address: String!\n method: String!\n args: [String!]\n connection: Connection\n ): String!\n\n callContractStatic(\n address: String!\n method: String!\n args: [String!]\n connection: Connection\n txOverrides: TxOverrides\n ): StaticTxResult!\n\n encodeParams(\n types: [String!]!\n values: [String!]!\n ): String!\n\n getSignerAddress(\n connection: Connection\n ): String!\n\n getSignerBalance(\n blockTag: BigInt\n connection: Connection\n ): BigInt!\n\n getSignerTransactionCount(\n blockTag: BigInt\n connection: Connection\n ): BigInt!\n\n getGasPrice(\n connection: Connection\n ): BigInt!\n\n estimateTransactionGas(\n tx: TxRequest!\n connection: Connection\n ): BigInt!\n\n estimateContractCallGas(\n address: String!\n method: String!\n args: [String!]\n connection: Connection\n txOverrides: TxOverrides\n ): BigInt!\n\n checkAddress(\n address: String!\n ): Boolean!\n\n toWei(\n eth: String!\n ): BigInt!\n\n toEth(\n wei: BigInt!\n ): String!\n\n awaitTransaction(\n txHash: String!\n confirmations: UInt32!\n timeout: UInt32!\n connection: Connection\n ): TxReceipt!\n\n waitForEvent(\n address: String!\n event: String!\n args: [String!]\n timeout: UInt32\n connection: Connection\n ): EventNotification!\n}\n\ntype Mutation {\n callContractMethod(\n address: String!\n method: String!\n args: [String!]\n connection: Connection\n txOverrides: TxOverrides\n ): TxResponse!\n\n callContractMethodAndWait(\n address: String!\n method: String!\n args: [String!]\n connection: Connection\n txOverrides: TxOverrides\n ): TxReceipt!\n\n sendTransaction(\n tx: TxRequest!\n connection: Connection\n ): TxResponse!\n\n sendTransactionAndWait(\n tx: TxRequest!\n connection: Connection\n ): TxReceipt!\n\n deployContract(\n abi: String!\n bytecode: String!\n args: [String!]\n connection: Connection\n ): String!\n\n signMessage(\n message: String!\n connection: Connection\n ): String!\n\n sendRPC(\n method: String!\n params: [String!]!\n connection: Connection\n ): String\n}\n\ntype TxReceipt {\n to: String!\n from: String!\n contractAddress: String!\n transactionIndex: UInt32!\n root: String\n gasUsed: BigInt!\n logsBloom: String!\n transactionHash: String!\n logs: [Log!]!\n blockNumber: BigInt!\n blockHash: String!\n confirmations: UInt32!\n cumulativeGasUsed: BigInt!\n effectiveGasPrice: BigInt!\n byzantium: Boolean!\n type: UInt32!\n status: UInt32\n}\n\ntype TxResponse {\n hash: String!\n to: String\n from: String!\n nonce: UInt32!\n gasLimit: BigInt!\n gasPrice: BigInt\n data: String!\n value: BigInt!\n chainId: UInt32!\n blockNumber: BigInt\n blockHash: String\n timestamp: UInt32\n confirmations: UInt32!\n raw: String\n r: String\n s: String\n v: UInt32\n type: UInt32\n accessList: [Access!]\n}\n\ntype TxRequest {\n to: String\n from: String\n nonce: UInt32\n gasLimit: BigInt\n gasPrice: BigInt\n data: String\n value: BigInt\n chainId: UInt32\n type: UInt32\n}\n\ntype TxOverrides {\n gasLimit: BigInt\n gasPrice: BigInt\n value: BigInt\n}\n\ntype StaticTxResult {\n result: String!\n error: Boolean!\n}\n\ntype Log {\n blockNumber: BigInt!\n blockHash: String!\n transactionIndex: UInt32!\n removed: Boolean!\n address: String!\n data: String!\n topics: [String!]!\n transactionHash: String!\n logIndex: UInt32!\n}\n\ntype EventNotification {\n data: String!\n address: String!\n log: Log!\n}\n\ntype Access {\n address: String!\n storageKeys: [String!]!\n}\n\ntype Connection {\n node: String\n networkNameOrChainId: String\n}\n\n### Imported Queries START ###\n\n### Imported Queries END ###\n\n### Imported Objects START ###\n\n### Imported Objects END ###\n";
exports.schema = "### Web3API Header START ###\nscalar UInt\nscalar UInt8\nscalar UInt16\nscalar UInt32\nscalar Int\nscalar Int8\nscalar Int16\nscalar Int32\nscalar Bytes\nscalar BigInt\nscalar JSON\n\ndirective @imported(\n uri: String!\n namespace: String!\n nativeType: String!\n) on OBJECT | ENUM\n\ndirective @imports(\n types: [String!]!\n) on OBJECT\n### Web3API Header END ###\n\ntype Query {\n callContractView(\n address: String!\n method: String!\n args: [String!]\n connection: Connection\n ): String!\n\n callContractStatic(\n address: String!\n method: String!\n args: [String!]\n connection: Connection\n txOverrides: TxOverrides\n ): StaticTxResult!\n\n encodeParams(\n types: [String!]!\n values: [String!]!\n ): String!\n\n encodeFunction(\n method: String!\n args: [String!]\n ): String!\n\n getSignerAddress(\n connection: Connection\n ): String!\n\n getSignerBalance(\n blockTag: BigInt\n connection: Connection\n ): BigInt!\n\n getSignerTransactionCount(\n blockTag: BigInt\n connection: Connection\n ): BigInt!\n\n getGasPrice(\n connection: Connection\n ): BigInt!\n\n estimateTransactionGas(\n tx: TxRequest!\n connection: Connection\n ): BigInt!\n\n estimateContractCallGas(\n address: String!\n method: String!\n args: [String!]\n connection: Connection\n txOverrides: TxOverrides\n ): BigInt!\n\n checkAddress(\n address: String!\n ): Boolean!\n\n toWei(\n eth: String!\n ): BigInt!\n\n toEth(\n wei: BigInt!\n ): String!\n\n awaitTransaction(\n txHash: String!\n confirmations: UInt32!\n timeout: UInt32!\n connection: Connection\n ): TxReceipt!\n\n waitForEvent(\n address: String!\n event: String!\n args: [String!]\n timeout: UInt32\n connection: Connection\n ): EventNotification!\n}\n\ntype Mutation {\n callContractMethod(\n address: String!\n method: String!\n args: [String!]\n connection: Connection\n txOverrides: TxOverrides\n ): TxResponse!\n\n callContractMethodAndWait(\n address: String!\n method: String!\n args: [String!]\n connection: Connection\n txOverrides: TxOverrides\n ): TxReceipt!\n\n sendTransaction(\n tx: TxRequest!\n connection: Connection\n ): TxResponse!\n\n sendTransactionAndWait(\n tx: TxRequest!\n connection: Connection\n ): TxReceipt!\n\n deployContract(\n abi: String!\n bytecode: String!\n args: [String!]\n connection: Connection\n ): String!\n\n signMessage(\n message: String!\n connection: Connection\n ): String!\n\n sendRPC(\n method: String!\n params: [String!]!\n connection: Connection\n ): String\n}\n\ntype TxReceipt {\n to: String!\n from: String!\n contractAddress: String!\n transactionIndex: UInt32!\n root: String\n gasUsed: BigInt!\n logsBloom: String!\n transactionHash: String!\n logs: [Log!]!\n blockNumber: BigInt!\n blockHash: String!\n confirmations: UInt32!\n cumulativeGasUsed: BigInt!\n effectiveGasPrice: BigInt!\n byzantium: Boolean!\n type: UInt32!\n status: UInt32\n}\n\ntype TxResponse {\n hash: String!\n to: String\n from: String!\n nonce: UInt32!\n gasLimit: BigInt!\n gasPrice: BigInt\n data: String!\n value: BigInt!\n chainId: UInt32!\n blockNumber: BigInt\n blockHash: String\n timestamp: UInt32\n confirmations: UInt32!\n raw: String\n r: String\n s: String\n v: UInt32\n type: UInt32\n accessList: [Access!]\n}\n\ntype TxRequest {\n to: String\n from: String\n nonce: UInt32\n gasLimit: BigInt\n gasPrice: BigInt\n data: String\n value: BigInt\n chainId: UInt32\n type: UInt32\n}\n\ntype TxOverrides {\n gasLimit: BigInt\n gasPrice: BigInt\n value: BigInt\n}\n\ntype StaticTxResult {\n result: String!\n error: Boolean!\n}\n\ntype Log {\n blockNumber: BigInt!\n blockHash: String!\n transactionIndex: UInt32!\n removed: Boolean!\n address: String!\n data: String!\n topics: [String!]!\n transactionHash: String!\n logIndex: UInt32!\n}\n\ntype EventNotification {\n data: String!\n address: String!\n log: Log!\n}\n\ntype Access {\n address: String!\n storageKeys: [String!]!\n}\n\ntype Connection {\n node: String\n networkNameOrChainId: String\n}\n\n### Imported Queries START ###\n\n### Imported Queries END ###\n\n### Imported Objects START ###\n\n### Imported Objects END ###\n";
//# sourceMappingURL=schema.js.map
{
"name": "@web3api/ethereum-plugin-js",
"description": "Web3API Ethereum Javascript Plugin",
"version": "0.0.1-prealpha.46",
"version": "0.0.1-prealpha.47",
"license": "MIT",

@@ -26,3 +26,3 @@ "repository": {

"@ethersproject/providers": "5.0.7",
"@web3api/core-js": "0.0.1-prealpha.46",
"@web3api/core-js": "0.0.1-prealpha.47",
"ethers": "5.0.7"

@@ -32,6 +32,6 @@ },

"@types/jest": "26.0.8",
"@web3api/client-js": "0.0.1-prealpha.46",
"@web3api/ens-plugin-js": "0.0.1-prealpha.46",
"@web3api/ipfs-plugin-js": "0.0.1-prealpha.46",
"@web3api/test-env-js": "0.0.1-prealpha.46",
"@web3api/client-js": "0.0.1-prealpha.47",
"@web3api/ens-plugin-js": "0.0.1-prealpha.47",
"@web3api/ipfs-plugin-js": "0.0.1-prealpha.47",
"@web3api/test-env-js": "0.0.1-prealpha.47",
"eth-ens-namehash": "2.0.8",

@@ -45,3 +45,3 @@ "jest": "26.6.3",

},
"gitHead": "d565bfeda083f10f7a728fd5b8b816321cfd2fc8",
"gitHead": "7bfc29311724549778d5710bb4bef75129d77b28",
"publishConfig": {

@@ -48,0 +48,0 @@ "access": "public"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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