Skip to content

Instantly share code, notes, and snippets.

View sunnya97's full-sized avatar

Sunny Aggarwal sunnya97

View GitHub Profile
pragma solidity >=0.4.22 <0.7.0;
contract Udi10xEscrow {
address payable escrower;
bool refunded;
constructor() public payable {
escrower = msg.sender;
require(msg.value == 10 ether);
refunded = false;
package paymentchannels
import (
"fmt"
sdk "github.com/cosmos/cosmos-sdk/types"
)
// PaymentChannel is a one way payment channel
type PaymentChannel struct {
ChannelID uint `json:"channelId"`
Participants []sdk.Account `json:"participants"`
Pot sdk.Coins `json:"pot"`
package main
type OuterStruct struct {
inner InnerStruct
}
func (outer OuterStruct) GetInner() InnerStruct {
return outer.inner
}
pragma solidity 0.4.13;
contract GasEfficientMultiSig {
function () payable {}
}
@sunnya97
sunnya97 / SimpleStorage.sol
Created July 26, 2017 05:54 — forked from naterush/SimpleStorage.sol
A simple storage contract as an introduction to Solidity.
//Tell the Solidity compiler what version to use
pragma solidity ^0.4.8;
//Declares a new contract
contract SimpleStorage {
//Storage. Persists in between transactions
uint x;
//Allows the unsigned integer stored to be changed
function set(uint newValue) {

Keybase proof

I hereby claim:

  • I am sunnya97 on github.
  • I am sunnya97 (https://keybase.io/sunnya97) on keybase.
  • I have a public key whose fingerprint is B1CD 4748 4431 892E E8D9 9C88 8334 D2C0 1088 6CF8

To claim this, I am signing this object:

@sunnya97
sunnya97 / README.md
Last active February 5, 2016 06:51
fresh block
@sunnya97
sunnya97 / README.md
Created February 2, 2016 17:36
fresh block
@sunnya97
sunnya97 / README.md
Created February 2, 2016 17:35
fresh block