ethers.js/docs.wrm/config.js

37 lines
823 B
JavaScript
Raw Normal View History

2022-12-10 02:25:39 +03:00
import * as ethers from "../lib.esm/index.js";
2022-12-03 23:13:51 +03:00
import { version } from "../lib.esm/_version.js";
const title = "ethers";
const subtitle = (function(version) {
const dash = version.indexOf("-");
if (dash === -1) { return version; }
return version.substring(dash + 1);
})(version);
2022-12-03 06:56:29 +03:00
export default {
2022-12-03 23:13:51 +03:00
title, subtitle,
prefix: "v6-beta",
2022-12-03 06:56:29 +03:00
2022-12-10 02:25:39 +03:00
contextify: function(context) {
Object.assign(context, ethers);
context.provider = new ethers.InfuraProvider();
//context.getAddress = ethers.getAddress;
context.Uint8Array = Uint8Array;
},
2022-12-03 06:56:29 +03:00
srcBaseUrl: "https:/\/github.com/ethers-io/ethers.js/blob/v6-beta-exports/src.ts/{FILENAME}#L{LINENO}",
2022-12-10 02:25:39 +03:00
docRoot: ".",
2022-12-03 06:56:29 +03:00
codeRoot: "../src.ts/index.ts",
links: [
"./links.txt",
],
2022-12-03 23:25:41 +03:00
staticFiles: [
"logo.svg",
"social.jpg"
]
2022-12-03 06:56:29 +03:00
};