Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
prettify eslint fix
  • Loading branch information
ezpuzz committed Aug 3, 2022
commit 8a164b92769bed6b9db43cf4b1b9d3b077f69d01
13 changes: 4 additions & 9 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
module.exports = {
root: true,
env: {
browser: false,
es2021: true,
mocha: true,
node: true,
},
plugins: ["@typescript-eslint"],
extends: ["standard", "plugin:prettier/recommended"],
parser: "@typescript-eslint/parser",
plugins: ['@typescript-eslint'],
extends: ['standard', 'plugin:prettier/recommended'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 12,
},
rules: {
"node/no-unsupported-features/es-syntax": [
"error",
{ ignores: ["modules"] },
],
},
};
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
420 changes: 419 additions & 1 deletion abis/GoldenTokenGoerli.json

Large diffs are not rendered by default.

420 changes: 419 additions & 1 deletion abis/GoldenTokenRinkeby.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/GoldenSchemaPredicates.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,4 @@
"0xc090be246c3545d88a8132e57a3d48dd",
"0x4c20c8960489b3a448b21524defa9f94c56ce6d9f6f5ddc0d973695130019a42"
]
]
]
9 changes: 6 additions & 3 deletions deploy/2_GoldenSchemaGovernor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ const deploy: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { deployer } = await getNamedAccounts();

const GoldenTokenDeployment = await deployments.get('GoldenToken');
let goldenSchemaGovernor = await deployments.getOrNull('GoldenSchemaGovernor');
const goldenSchemaGovernor = await deployments.getOrNull(
'GoldenSchemaGovernor'
);
if (!goldenSchemaGovernor) {
await deploy('GoldenSchemaGovernor', {
from: deployer,
Expand All @@ -24,9 +26,10 @@ const deploy: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
await ethers.getSigner(deployer)
);

await GoldenSchema.transferOwnership(GoldenSchemaGovernorDeployment.address);
await GoldenSchema.transferOwnership(
GoldenSchemaGovernorDeployment.address
);
}

};

deploy.id = 'deploy_golden_schema_governance';
Expand Down
2 changes: 1 addition & 1 deletion deploy/3_GoldenToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const deploy: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
}

const contractName = 'GoldenToken';
let goldenToken = await deployments.getOrNull(contractName);
const goldenToken = await deployments.getOrNull(contractName);
if (!goldenToken) {
await deploy(contractName, {
log: true,
Expand Down
6 changes: 2 additions & 4 deletions deploy/4_GoldenToken_Upgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ export const SEED_AMOUNT = ethers.utils.parseUnits('10000', 18);
export const STAKE_AMOUNT = ethers.utils.parseUnits('10', 18);

const deploy: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { deployments, getNamedAccounts, getUnnamedAccounts, network } =
hre;
const { deployments, getNamedAccounts, getUnnamedAccounts, network } = hre;
const { deploy, catchUnknownSigner } = deployments;

const { deployer } = await getNamedAccounts();
Expand All @@ -36,8 +35,7 @@ const deploy: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
proxyContract: 'OpenZeppelinTransparentProxy',
},
})
)

);
};

deploy.id = 'deploy_golden_token';
Expand Down
6 changes: 2 additions & 4 deletions deployments/goerli/DefaultProxyAdmin.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion deployments/goerli/GoldenSchema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1047,4 +1047,4 @@
}
}
}
}
}
6 changes: 2 additions & 4 deletions deployments/goerli/GoldenSchemaGovernor.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion deployments/goerli/GoldenToken.json
Original file line number Diff line number Diff line change
Expand Up @@ -1150,4 +1150,4 @@
"storage": [],
"types": null
}
}
}
2 changes: 1 addition & 1 deletion deployments/goerli/GoldenToken_Implementation.json
Original file line number Diff line number Diff line change
Expand Up @@ -1334,4 +1334,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion deployments/goerli/GoldenToken_Proxy.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,4 +272,4 @@
"storage": [],
"types": null
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,11 @@
"storageLayout",
"evm.gasEstimates"
],
"": [
"ast"
]
"": ["ast"]
}
},
"metadata": {
"useLiteralContent": true
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,11 @@
"storageLayout",
"evm.gasEstimates"
],
"": [
"ast"
]
"": ["ast"]
}
},
"metadata": {
"useLiteralContent": true
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,11 @@
"storageLayout",
"evm.gasEstimates"
],
"": [
"ast"
]
"": ["ast"]
}
},
"metadata": {
"useLiteralContent": true
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,11 @@
"storageLayout",
"evm.gasEstimates"
],
"": [
"ast"
]
"": ["ast"]
}
},
"metadata": {
"useLiteralContent": true
}
}
}
}
6 changes: 2 additions & 4 deletions deployments/mumbai/DefaultProxyAdmin.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion deployments/mumbai/GoldenSchema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1062,4 +1062,4 @@
}
}
}
}
}
6 changes: 2 additions & 4 deletions deployments/mumbai/GoldenSchemaGovernor.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion deployments/mumbai/GoldenToken.json
Original file line number Diff line number Diff line change
Expand Up @@ -1165,4 +1165,4 @@
"storage": [],
"types": null
}
}
}
2 changes: 1 addition & 1 deletion deployments/mumbai/GoldenToken_Implementation.json
Original file line number Diff line number Diff line change
Expand Up @@ -1350,4 +1350,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion deployments/mumbai/GoldenToken_Proxy.json
Original file line number Diff line number Diff line change
Expand Up @@ -287,4 +287,4 @@
"storage": [],
"types": null
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,11 @@
"storageLayout",
"evm.gasEstimates"
],
"": [
"ast"
]
"": ["ast"]
}
},
"metadata": {
"useLiteralContent": true
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,11 @@
"storageLayout",
"evm.gasEstimates"
],
"": [
"ast"
]
"": ["ast"]
}
},
"metadata": {
"useLiteralContent": true
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,11 @@
"storageLayout",
"evm.gasEstimates"
],
"": [
"ast"
]
"": ["ast"]
}
},
"metadata": {
"useLiteralContent": true
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,11 @@
"storageLayout",
"evm.gasEstimates"
],
"": [
"ast"
]
"": ["ast"]
}
},
"metadata": {
"useLiteralContent": true
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,11 @@
"storageLayout",
"evm.gasEstimates"
],
"": [
"ast"
]
"": ["ast"]
}
},
"metadata": {
"useLiteralContent": true
}
}
}
}
2 changes: 1 addition & 1 deletion deployments/rinkeby/GoldenSchema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1047,4 +1047,4 @@
}
}
}
}
}
6 changes: 2 additions & 4 deletions deployments/rinkeby/GoldenSchemaGovernor.json

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions deployments/rinkeby/GoldenToken.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,11 @@
"storageLayout",
"evm.gasEstimates"
],
"": [
"ast"
]
"": ["ast"]
}
},
"metadata": {
"useLiteralContent": true
}
}
}
}
4 changes: 2 additions & 2 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ const config: HardhatUserConfig = {
goerli: process.env.ETHERSCAN_API_KEY!,
kovan: process.env.ETHERSCAN_API_KEY!,
polygon: process.env.POLYSCAN_API_KEY!,
polygonMumbai: process.env.POLYSCAN_API_KEY!
}
polygonMumbai: process.env.POLYSCAN_API_KEY!,
},
},
namedAccounts: {
deployer: {
Expand Down
6 changes: 4 additions & 2 deletions ipfs/IPFSapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ type PredicateConstraintBase = {
type: string;
};

type FormatPredicateConstraint = PredicateConstraintBase | { regex_pattern: string; };
type FormatPredicateConstraint =
| PredicateConstraintBase
| { regex_pattern: string };

type PredicateConstraint = FormatPredicateConstraint;

Expand Down Expand Up @@ -117,7 +119,7 @@ export const getDataFromIPFSByCID = async <T extends string | string[]>(
)) as unknown as ReturnTypeOverride<T>;
}

let data = [];
const data = [];
for (let i = 0; i < hashes.length; i++) {
const hash = hashes[i];
if (!hash) {
Expand Down
Loading