@web3api/ethereum-plugin-js
Advanced tools
Comparing version 0.0.1-prealpha.6 to 0.0.1-prealpha.7
@@ -1,2 +0,2 @@ | ||
import { Client, Plugin, PluginManifest, PluginModules } from "@web3api/core-js"; | ||
import { Client, Plugin, PluginManifest, PluginModules, PluginFactory } from "@web3api/core-js"; | ||
import { Signer, ethers } from "ethers"; | ||
@@ -27,1 +27,3 @@ import { ExternalProvider, JsonRpcProvider, Web3Provider } from "@ethersproject/providers"; | ||
} | ||
export declare const ethereumPlugin: PluginFactory<EthereumConfig>; | ||
export declare const plugin: PluginFactory<EthereumConfig>; |
@@ -52,3 +52,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.EthereumPlugin = void 0; | ||
exports.plugin = exports.ethereumPlugin = exports.EthereumPlugin = void 0; | ||
/* eslint-disable import/no-extraneous-dependencies */ | ||
@@ -75,3 +75,3 @@ var resolvers_1 = require("./resolvers"); | ||
// TODO: generated types here from the schema.graphql to ensure safety `Resolvers<TQuery, TMutation>` | ||
// https://github.com/Web3-API/prototype/issues/101 | ||
// https://github.com/web3-api/monorepo/issues/101 | ||
EthereumPlugin.prototype.getModules = function (_client) { | ||
@@ -191,2 +191,9 @@ return { | ||
exports.EthereumPlugin = EthereumPlugin; | ||
exports.ethereumPlugin = function (opts) { | ||
return { | ||
factory: function () { return new EthereumPlugin(opts); }, | ||
manifest: manifest_1.manifest, | ||
}; | ||
}; | ||
exports.plugin = exports.ethereumPlugin; | ||
//# sourceMappingURL=index.js.map |
@@ -6,3 +6,3 @@ "use strict"; | ||
// TODO: use the schema.graphql | ||
// https://github.com/Web3-API/prototype/issues/101 | ||
// https://github.com/web3-api/monorepo/issues/101 | ||
schema: "type Query { dummy: String }", | ||
@@ -9,0 +9,0 @@ implemented: [], |
{ | ||
"name": "@web3api/ethereum-plugin-js", | ||
"description": "Web3API Ethereum Javascript Plugin", | ||
"version": "0.0.1-prealpha.6", | ||
"version": "0.0.1-prealpha.7", | ||
"license": "MIT", | ||
@@ -23,3 +23,3 @@ "repository": { | ||
"dependencies": { | ||
"@web3api/core-js": "0.0.1-prealpha.6", | ||
"@web3api/core-js": "0.0.1-prealpha.7", | ||
"ethers": "5.0.7" | ||
@@ -35,3 +35,3 @@ }, | ||
}, | ||
"gitHead": "4eccf972b3cf44dea493c07e803d40cde81970ff", | ||
"gitHead": "4e285019a0b3b0f371aab362afa6977acfb15c49", | ||
"publishConfig": { | ||
@@ -38,0 +38,0 @@ "access": "public" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21952
306
+ Added@web3api/core-js@0.0.1-prealpha.7(transitive)
+ Added@web3api/manifest-schema@0.0.1-prealpha.7(transitive)
- Removed@web3api/core-js@0.0.1-prealpha.6(transitive)
- Removed@web3api/manifest-schema@0.0.1-prealpha.6(transitive)