@polywrap/web3-config-bundle-js
v0.12.2
Published
A collection of Web3 configurations.
Downloads
133
Readme
Web3 Config Bundle
A collection of Web3 configurations.
Bundle
import * as Sys from "@polywrap/sys-config-bundle-js";
import * as EthWallet from "@polywrap/ethereum-wallet-js";
export interface Web3Bundle extends Bundle {
concurrent: BundlePackage;
http: BundlePackage;
ipfsHttpClient: BundlePackage;
ipfsResolver: BundlePackage;
ethereumWallet: BundlePackage;
ensTextRecordResolver: BundlePackage;
ensContenthashResolver: BundlePackage;
ensIpfsContenthashResolver: BundlePackage;
}
export const bundle: Web3Bundle = {
concurrent: Sys.bundle.concurrent,
http: Sys.bundle.http,
ipfsHttpClient: Sys.bundle.ipfsHttpClient,
ipfsResolver: Sys.bundle.ipfsResolver,
ethereumWallet: {
uri: "plugin/[email protected]",
package: EthWallet.plugin({
connections: new EthWallet.Connections({
networks: {
mainnet: new EthWallet.Connection({
provider:
"https://mainnet.infura.io/v3/b00b2c2cc09c487685e9fb061256d6a6",
}),
goerli: new EthWallet.Connection({
provider:
"https://goerli.infura.io/v3/b00b2c2cc09c487685e9fb061256d6a6",
}),
},
}),
}) as IWrapPackage,
implements: ["wrapscan.io/polywrap/[email protected]"],
redirectFrom: ["wrapscan.io/polywrap/[email protected]"],
},
ensTextRecordResolver: {
uri: "ipfs/QmdYoDrXPxgjSoWuSWirWYxU5BLtpGVKd3z2GXKhW2VXLh",
implements: [
"wrapscan.io/polywrap/[email protected]",
ExtendableUriResolver.defaultExtInterfaceUris[0].uri,
],
redirectFrom: ["wrapscan.io/polywrap/[email protected]"],
},
ensContenthashResolver: {
uri: "wrapscan.io/polywrap/[email protected]",
implements: [ExtendableUriResolver.defaultExtInterfaceUris[0].uri],
},
ensIpfsContenthashResolver: {
uri: "wrapscan.io/polywrap/[email protected]",
implements: [ExtendableUriResolver.defaultExtInterfaceUris[0].uri],
},
};