Skip to content

Commit

Permalink
Contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
bokkypoobah committed Aug 1, 2024
1 parent cbe4dfe commit 4ca0c64
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
14 changes: 13 additions & 1 deletion docs/customNames.js → docs/contracts.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -2631,7 +2631,7 @@ const dataModule = {

async collateNames(context, parameter) {
console.log(now() + " INFO dataModule:actions.collateNames BEGIN: " + JSON.stringify(parameter));
for (const [address, addressData] of Object.entries(CUSTOMNAMES)) {
for (const [address, addressData] of Object.entries(CONTRACTS)) {
if (!(address in context.state.names)) {
context.commit('updateName', { address, name: addressData.name });
}
Expand Down
2 changes: 1 addition & 1 deletion docs/fungibles.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ const Fungibles = {
include = false;
}
}
const unsupported = contract in UNSUPPORTED_FUNGIBLES;
const unsupported = CONTRACTS[contract] && !!CONTRACTS[contract].unsupported || false;
const balances = [];
for (const [address, balance] of Object.entries(contractData.balances)) {
balances.push({ address, balance });
Expand Down
3 changes: 1 addition & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@
<script src="js/eth-ens-namehash.js"></script>

<script src="deploymentData.js"></script>
<script src="unsupportedFungibles.js"></script>
<script src="customNames.js"></script>
<script src="contracts.js"></script>
<script src="networks.js"></script>
<script src="functions.js"></script>
<script src="config.js"></script>
Expand Down
11 changes: 0 additions & 11 deletions docs/unsupportedFungibles.js

This file was deleted.

2 changes: 1 addition & 1 deletion docs/viewTokenContract.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ const ViewTokenContract = {
return store.getters['viewTokenContract/type'];
},
unsupported() {
return this.contract in UNSUPPORTED_FUNGIBLES;
return CONTRACTS[this.contract] && !!CONTRACTS[this.contract].unsupported || false;
},
contractDecimals() {
return store.getters['viewTokenContract/contractDecimals'];
Expand Down

0 comments on commit 4ca0c64

Please sign in to comment.