Skip to content

Instantly share code, notes, and snippets.

View pawandhanwani's full-sized avatar

Pawan Dhanwani pawandhanwani

  • Chennai , Tamil Nadu, India
View GitHub Profile
@pawandhanwani
pawandhanwani / README.md
Last active August 29, 2020 14:25
Just a demo

Content is here

Sub content here

import React, { Component } from 'react';
import { ThanosWallet } from "@thanos-wallet/dapp";
import './App.css';
class App extends Component {
constructor(props) {
super(props);
this.wallet = null;
this.tezos = null;
this.shopping=null;
import smartpy as sp
class Shopping(sp.Contract):
def __init__(self,params):
self.init(orders = sp.map(tkey = sp.TInt , tvalue = sp.TRecord(units = sp.TInt, contactPerson = sp.TString , deliveryAddress = sp.TString , fulfilled = sp.TBool , item=sp.TString)), counter = sp.int(0),admin=params)
def incrementCounter(self):
self.data.counter += 1
@sp.entry_point