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
// Sources flattened with hardhat v2.9.9 https://hardhat.org | |
// File @openzeppelin/contracts/utils/introspection/[email protected] | |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) | |
pragma solidity ^0.8.0; | |
/** |
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
import { render, screen } from '@testing-library/react'; | |
import { OnboardingLayout } from './OnboardingLayout'; | |
import * as wagmi from 'wagmi'; | |
describe('OnboardingLaout', () => { | |
test('all sections are being rendered', () => { | |
const spyUseConnect = jest.spyOn(wagmi, 'useConnect'); | |
spyUseConnect.mockReturnValue([ | |
{ | |
// @ts-ignore we are not returning all the fields returned by the actual data field. We don't need to |
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 | |
pragma solidity ^0.8.4; | |
// We first import some OpenZeppelin Contracts. | |
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; | |
import "@openzeppelin/contracts/utils/Counters.sol"; | |
import {StringUtils} from "./StringUtils.sol"; | |
// We import another help function | |
import {Base64} from "./Base64.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
export default function App() { | |
const { connectWallet, connected } = useWallet(); | |
const greeterContract = useContract(CONTRACT_ADDRESS, abi); | |
const [greeting, setGreeting] = useState(); | |
const [input, setInput] = useState(); | |
const { execute, error, loading } = useTransaction(greeterContract.setGreeting, [input]); | |
const fetchGreeting = useCallback(async () => { |
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
import AgoraRTC, { | |
IAgoraRTCClient, | |
IAgoraRTCRemoteUser, | |
ILocalAudioTrack, | |
ILocalVideoTrack, | |
IMicrophoneAudioTrack, | |
} from 'agora-rtc-sdk-ng'; | |
import { RtcTokenBuilder, RtcRole } from 'agora-access-token'; |
NewerOlder