Skip to content

Commit

Permalink
fix: avoid error importing json module
Browse files Browse the repository at this point in the history
  • Loading branch information
gabaldon committed Sep 9, 2024
1 parent 6a66c01 commit 1e0a911
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions assets/witnet.settings.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const packageJson = await import("./package.json", {
assert: { type: "json" },
});
const packageJson = require("../package.json")

export default {
artifacts: {
Expand All @@ -17,98 +15,98 @@ export default {
default: {
WitnetRequestBoard: [
/* _isUpgradable */ true,
/* _verstionTag */ fromAscii(packageJson.default.version + "-trustable"),
/* _verstionTag */ fromAscii(packageJson.version + "-trustable"),
/* _reportResultGasLimit */ 133000,
],
},
avalanche: {
WitnetRequestBoard: [
/* _isUpgradable */ true,
/* _verstionTag */ fromAscii(packageJson.default.version + "-trustable"),
/* _verstionTag */ fromAscii(packageJson.version + "-trustable"),
/* _reportResultGasLimit */ 155000,
],
},
boba: {
WitnetRequestBoard: [
/* _isUpgradable */ true,
/* _verstionTag */ fromAscii(packageJson.default.version + "-trustable"),
/* _verstionTag */ fromAscii(packageJson.version + "-trustable"),
/* _reportResultGasLimit */ 225000,
],
},
celo: {
WitnetRequestBoard: [
/* _isUpgradable */ true,
/* _verstionTag */ fromAscii(packageJson.default.version + "-trustable"),
/* _verstionTag */ fromAscii(packageJson.version + "-trustable"),
/* _reportResultGasLimit */ 114000,
],
},
conflux: {
WitnetRequestBoard: [
/* _isUpgradable */ true,
/* _verstionTag */ fromAscii(packageJson.default.version + "-trustable"),
/* _verstionTag */ fromAscii(packageJson.version + "-trustable"),
/* _reportResultGasLimit */ 78500,
],
},
"conflux.espace.testnet": {
WitnetRequestBoard: [
/* _isUpgradable */ true,
/* _verstionTag */ fromAscii(packageJson.default.version + "-trustable"),
/* _verstionTag */ fromAscii(packageJson.version + "-trustable"),
/* _reportResultGasLimit */ 225000,
],
},
"conflux.espace.mainnet": {
WitnetRequestBoard: [
/* _isUpgradable */ true,
/* _verstionTag */ fromAscii(packageJson.default.version + "-trustable"),
/* _verstionTag */ fromAscii(packageJson.version + "-trustable"),
/* _reportResultGasLimit */ 225000,
],
},
harmony: {
WitnetRequestBoard: [
/* _isUpgradable */ true,
/* _verstionTag */ fromAscii(packageJson.default.version + "-trustable"),
/* _verstionTag */ fromAscii(packageJson.version + "-trustable"),
/* _reportResultGasLimit */ 530000,
],
},
hsc: {
WitnetRequestBoard: [
/* _isUpgradable */ true,
/* _verstionTag */ fromAscii(packageJson.default.version + "-trustable"),
/* _verstionTag */ fromAscii(packageJson.version + "-trustable"),
/* _reportResultGasLimit */ 85000,
],
},
kcc: {
WitnetRequestBoard: [
/* _isUpgradable */ true,
/* _verstionTag */ fromAscii(packageJson.default.version + "-trustable"),
/* _verstionTag */ fromAscii(packageJson.version + "-trustable"),
/* _reportResultGasLimit */ 92500,
],
},
klaytn: {
WitnetRequestBoard: [
/* _isUpgradable */ true,
/* _verstionTag */ fromAscii(packageJson.default.version + "-trustable"),
/* _verstionTag */ fromAscii(packageJson.version + "-trustable"),
/* _reportResultGasLimit */ 105000,
],
},
metis: {
WitnetRequestBoard: [
/* _isUpgradable */ true,
/* _verstionTag */ fromAscii(packageJson.default.version + "-trustable"),
/* _verstionTag */ fromAscii(packageJson.version + "-trustable"),
/* _reportResultGasLimit */ 134800,
],
},
moonbeam: {
WitnetRequestBoard: [
/* _isUpgradable */ true,
/* _verstionTag */ fromAscii(packageJson.default.version + "-trustable"),
/* _verstionTag */ fromAscii(packageJson.version + "-trustable"),
/* _reportResultGasLimit */ 115000,
],
},
okxchain: {
WitnetRequestBoard: [
/* _isUpgradable */ true,
/* _verstionTag */ fromAscii(packageJson.default.version + "-trustable"),
/* _verstionTag */ fromAscii(packageJson.version + "-trustable"),
/* _reportResultGasLimit */ 145000,
],
},
Expand Down

0 comments on commit 1e0a911

Please sign in to comment.