A Pen by Anshu Jalan on CodePen.
This file contains 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: UNLICENSED | |
pragma solidity ^0.8.13; | |
contract Escrow { | |
mapping(address => mapping(uint256 => uint256)) internal userToSecretToDeposit; | |
mapping(address => mapping(uint256 => address)) internal userToSecretToAuthorised; | |
function deposit(uint256 secretHash) external payable { | |
userToSecretToDeposit[msg.sender][secretHash] = msg.value; | |
} |
This file contains 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: UNLICENSED | |
pragma solidity ^0.8.13; | |
contract Escrow { | |
mapping(address => mapping(uint256 => uint256)) internal userToSecretToDeposit; | |
mapping(address => mapping(uint256 => address)) internal userToSecretToAuthorised; | |
function deposit(uint256 secretHash) external payable { | |
userToSecretToDeposit[msg.sender][secretHash] = msg.value; | |
} |
This file contains 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: UNLICENSED | |
pragma solidity ^0.8.13; | |
contract Escrow { | |
mapping(address => mapping(uint256 => uint256)) internal userToSecretToDeposit; | |
mapping(address => mapping(uint256 => address)) internal userToSecretToAuthorised; | |
function deposit(uint256 secretHash) external payable { | |
userToSecretToDeposit[msg.sender][secretHash] = msg.value; | |
} |
This file contains 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
<html> | |
<head> | |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.7/p5.min.js"></script> | |
</head> | |
<body> | |
</body> | |
</html> |
This file contains 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
<html> | |
<head> | |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.7/p5.min.js"></script> | |
</head> | |
<body> | |
</body> | |
</html> |
This file contains 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 axios from "axios"; | |
// The contract that handled the NFT sale | |
const SALE_CONTRACT = "KT1DdxmJujm3u2ZNkYwV24qLBJ6iR7sc58B9"; | |
// The entrypoint called to generate the NFT | |
const ENTRY_POINT = "mint"; | |
// Failed status values | |
const FAILTURE_STATUSES = ["failed", "skipped", "backtracked"]; |
This file contains 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
I am attesting that this GitHub handle AnshuJalan is linked to the Tezos account tz1eUzpKnk5gKLYw4HWs2sWsynfbT7ypGxNM for tzprofiles | |
sig:edsigu1X5WR68yo1hCEbqMGimmq5KcKUWqPe42T58ys6koAYZMD1HQ3pymotfq6v7PwMg8UkNAVHtW6HFSd2UzQLDufrTY5KMSW |
This file contains 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 smartpy as sp | |
# The metadata below is just an example, it serves as a base, | |
# the contents are used to build the metadata JSON that users | |
# can copy and upload to IPFS. | |
TZIP16_Metadata_Base = { | |
"name": "Sample FA1.2 Token", | |
"description": "FA1.2 based token supporting level based snapshots, to assist token voting.", | |
"authors": ["Anshu Jalan (anshujalan206@gmail.com)"], | |
"interfaces": ["TZIP-007-2021-04-17", "TZIP-016-2021-04-17"], |