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
#![no_std] | |
elrond_wasm::imports!(); | |
const EGLD_DECIMALS_VALUE: u64 = 100000000; | |
#[elrond_wasm::contract] | |
pub trait CHECKERSale { | |
/// Necessary configuration when deploying: | |
/// `max_amount` - max amount of EGLD that can be used to buy $MUNCHKIN. |
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
#![no_std] | |
elrond_wasm::imports!(); | |
const EGLD_DECIMALS_VALUE: u64 = 100000000; | |
#[elrond_wasm::contract] | |
pub trait CHECKERSale { | |
/// Necessary configuration when deploying: | |
/// `max_amount` - max amount of EGLD that can be used to buy $MUNCHKIN. |
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
scilla_version 0 | |
library REDC | |
(* Error events *) | |
type Error = | |
| CodeNotAdmin | |
| CodeNotStagingAdmin | |
let make_error = |
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
scilla_version 0 | |
import ListUtils BoolUtils | |
library FlatDistributorProxy | |
let zero = Uint128 0 | |
(* Error events *) | |
type Error = |
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
scilla_version 0 | |
import ListUtils | |
library FlatDistributorProxy | |
let zero = Uint128 0 | |
(* Error events *) | |
type Error = |
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: MIT | |
// pragma solidity ^0.8.0; | |
pragma solidity =0.5.16; | |
import "./openZeppelin/ERC1155.sol"; | |
import "./openZeppelin/Counters.sol"; | |
import "./openZeppelin/AccessControl.sol"; | |
import "./liquidityPool/core/libraries/SafeMath.sol"; | |
import "./AlbumFungibleToken.sol"; |
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: MIT | |
// pragma solidity ^0.8.0; | |
pragma solidity =0.5.16; | |
import "./openZeppelin/ERC1155.sol"; | |
import "./openZeppelin/Counters.sol"; | |
import "./openZeppelin/AccessControl.sol"; | |
import "./liquidityPool/core/libraries/SafeMath.sol"; | |
import "./AlbumFungibleToken.sol"; |
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
pragma solidity >=0.4.23; | |
contract Election{ | |
//definition of candidates | |
struct Candidate{ | |
uint id; | |
string name; | |
uint noOfVotes; | |
} | |
//mapping of candidates |
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
pragma solidity ^0.4.23; | |
import "github.com/Arachnid/solidity-stringutils/strings.sol"; | |
contract Polling{ | |
using strings for *; | |
struct Event{ | |
string name; | |
mapping(uint => Options) options; | |
uint optionsCount; |