Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.66 KB | None | 0 0
  1. package org.web3j.request;
  2. import java.util.*;
  3.  
  4. public class Demonstration {
  5.     @SmartContract(address="0x<address>|<ensName>")
  6.     SmartContract simpleStorage;
  7.  
  8.     // ko se proži metoda na smart contractu moneyReceived() se proži metoda
  9.     @SmartContractMethod(name="set")
  10.     public static void grantAccessToHotel (@SmartContractParam String value) {
  11.         // Send access token via email to user
  12.     }
  13.  
  14.     @SmartContractDeploy(class="SimpleStorage")
  15.     public static void deployContract() { // initial Value required if payable modifier
  16.     }
  17.  
  18.     @SmartContractTransfer(class="SimpleStorage")
  19.     public static void transferFunds() {
  20.     }
  21.  
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement