Skip to content

Instantly share code, notes, and snippets.

f0238263f663adfc38667758790d387935a7bbd52580d8ea1fb97f6a06d1ded4a6d5bcc010a3a3d8e1817359ff124d53df8a244063f4599be64b56056b99aab1

Privacy Policy

Jaspreet Singh built the Prakash app as an Open Source app. This SERVICE is provided by Jaspreet Singh at no cost and is intended for use as is.

This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.

If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Prakash unless otherwise defined in this Privacy Policy.

pragma solidity ^0.4.11;
contract Prakash{
struct complaint{
// status can be 0,1,2 => added , resolved , cancelled
uint256 status;
address user;
string desc;
string name;
uint256 phoneNumber;
@iamjaspreetsingh
iamjaspreetsingh / CrowdFunding.sol
Last active October 21, 2018 09:23
made benificiaries of fixed size
pragma solidity ^0.4.24;
contract CrowdFunding {
//the admins who can withdraw from contract
address[4] public beneficiaries;
//amount raised in total
@iamjaspreetsingh
iamjaspreetsingh / erc777.scilla
Last active October 10, 2018 15:14
Type error in application of `one_msg`: [/scilla-ide/temp/1752749a-a11e-4c4c-8671-aff74513bac5.scilla:126:13]: Couldn't resolve the identifier "one_msg".
(* This contract implements a fungible token interface a la ERC777.*)
(* This contract does not fire events *)
(***************************************************)
(* Associated library *)
(***************************************************)
import BoolUtils
@iamjaspreetsingh
iamjaspreetsingh / erc777.scilla
Created October 10, 2018 08:42
Type error in the binding to into `msg`: [:0:0]: Couldn't resolve the identifier "noauth".
contract ERC777Token
(name:String ,
symbol: String,
totalSupply:Uint128,
owner : ByStr20,
granularity: Uint128)
(* Initial balance is not stated explicitly: it's initialized when creating the contract. *)
@iamjaspreetsingh
iamjaspreetsingh / crowdsale.scilla
Created October 10, 2018 07:19
I am getting syntax errors in transition buyTokens.
library CrowdSale
let one_msg =
fun (msg : Message) =>
let nil_msg = Nil {Message} in
Cons {Message} msg nil_msg
let success = Int32 1
let failure = Int32 2