https://ethereum.org/en/developers/docs/standards/tokens/erc-4626/
- a = amount to deposit
- B = balance of vault before deposit
- s = shares to mint
| const assertation = await navigator.credentials.get({ | |
| publicKey: { | |
| challenge: Uint8Array.from("randomStringFromServer", (c) => | |
| c.charCodeAt(0) | |
| ), | |
| rpId: "localhost", | |
| }, | |
| mediation: "optional", | |
| }); |
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.20; | |
| import "https://github.com/ethereum-attestation-service/eas-contracts/blob/master/contracts/resolver/SchemaResolver.sol"; | |
| import "https://github.com/ethereum-attestation-service/eas-contracts/blob/master/contracts/IEAS.sol"; | |
| import "@openzeppelin/contracts/access/Ownable.sol"; | |
| import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; | |
| import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; |
| const express = require("express"); | |
| const { | |
| SchemaEncoder, | |
| SchemaRegistry, | |
| createOffchainURL, | |
| EAS, | |
| Delegated, | |
| ZERO_BYTES32, | |
| NO_EXPIRATION, | |
| } = require("@ethereum-attestation-service/eas-sdk"); |
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.20; | |
| import "https://github.com/ethereum-attestation-service/eas-contracts/blob/master/contracts/resolver/SchemaResolver.sol"; | |
| import "https://github.com/ethereum-attestation-service/eas-contracts/blob/master/contracts/IEAS.sol"; | |
| import "@openzeppelin/contracts/access/Ownable.sol"; | |
| /// @title AttesterResolver | |
| /// @notice A chora_club schema resolver that checks whether the attestation is from chora_club' address. |
| const express = require("express"); | |
| const { | |
| SchemaEncoder, | |
| SchemaRegistry, | |
| createOffchainURL, | |
| EAS, | |
| Delegated, | |
| ZERO_BYTES32, | |
| NO_EXPIRATION, | |
| } = require("@ethereum-attestation-service/eas-sdk"); |
| const express = require("express"); | |
| const { | |
| SchemaEncoder, | |
| SchemaRegistry, | |
| createOffchainURL, | |
| EAS, | |
| Delegated, | |
| ZERO_BYTES32, | |
| NO_EXPIRATION, | |
| } = require("@ethereum-attestation-service/eas-sdk"); |
https://ethereum.org/en/developers/docs/standards/tokens/erc-4626/
Incorporate foods that promote healthy skin and overall well-being. Additionally, ensure proper hydration and include exercises to enhance muscle growth.
| "use client"; | |
| import React from "react"; | |
| import { | |
| SignProtocolClient, | |
| SpMode, | |
| OffChainSignType, | |
| OffChainRpc, | |
| DataLocationOffChain, | |
| IndexService, | |
| } from "@ethsign/sp-sdk"; |
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.19; | |
| import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | |
| import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; | |
| import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol"; | |
| import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; | |
| import "@openzeppelin/contracts/utils/cryptography/EIP712.sol"; | |
| contract HandshakeTokenTransfer is EIP712 { |