This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
// This is considered an Exogenous, Decentralized, Anchored (pegged), Crypto Collateralized low volitility coin | |
pragma solidity 0.8.24; | |
import {ERC20Burnable, ERC20} from "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; | |
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
// This is considered an Exogenous, Decentralized, Anchored (pegged), Crypto Collateralized low volitility coin | |
pragma solidity 0.8.24; | |
import {ERC20Burnable, ERC20} from "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; | |
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"baseUrl": "http://localhost:3000", | |
"userAgent": "synpress", | |
"retries": { "runMode": 0, "openMode": 0 }, | |
"integrationFolder": "tests/e2e/specs", | |
"screenshotsFolder": "screenshots", | |
"videosFolder": "videos", | |
"video": true, | |
"chromeWebSecurity": true, | |
"viewportWidth": 1366, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('Test User Login', () => { | |
it('Connects with Metamask', () => { | |
cy.visit('http://localhost:3000') | |
// find "Connect Wallet" button and click it | |
cy.contains('Connect Wallet').click(); | |
// assuming there is only metamask popping up | |
// always important to switch between metamask and cypress window | |
cy.switchToMetamaskWindow(); | |
// connect to dapp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('Test User Login', () => { | |
it('Connects with Metamask', () => { | |
cy.visit('https://dappify.com') | |
cy.contains('Sign').click(); | |
cy.contains('Confirm').click(); | |
// look for Button that says "Connect Wallet" and click it | |
cy.contains('Connect Wallet').click(); | |
cy.contains('Metamask').click(); | |
// always important to switch between metamask and cypress window |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": { | |
"updateCoin": { | |
"id": "620a78c8ded99924b9dda202", | |
"name": "Helium (HNT)" | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mutation updateCoin{ | |
updateCoin( | |
id: "620a78c8ded99924b9dda202", | |
input: { | |
name: "Helium (HNT)" | |
}){ | |
id | |
name | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": { | |
"coins": [ | |
{ | |
"id": "620a78c2ded99924b9dda200", | |
"name": "Flux" | |
}, | |
{ | |
"id": "620a78c8ded99924b9dda202", | |
"name": "Helium" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mutation deleteCoin { | |
deleteCoin(id: "620a7804ded99924b9dda1fc"){ | |
id | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": { | |
"coins": [ | |
{ | |
"name": "Ethereum", | |
"id": "620a7804ded99924b9dda1fc" | |
}, | |
{ | |
"name": "Flux", | |
"id": "620a78c2ded99924b9dda200" |
NewerOlder