SHARE
TWEET

Untitled

a guest Jul 16th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // IssuedTokenType for fixed token type
  2. MyFixedToken myFixedToken = new MyFixedToken("ASHUCOIN", 4);
  3. IssuedTokenType<MyFixedToken> issuedFixedToken =
  4. new IssuedTokenType<>(issuer, myFixedToken);
  5.  
  6. // IssuedTokenType for evolvable token type
  7. MyEvolvableToken myEvolvableToken = new MyEvolvableToken(...);
  8. LinearPointer<MyEvolvableToken> linearPointer =
  9.   new LinearPointer<>(myEvolvableToken.getLinearId(), MyEvolvableToken.class);
  10. TokenPointer<MyEvolvableToken> tokenPointer =
  11.   new TokenPointer<>(linearPointer, myEvolvableToken.getFractionDigits);
  12. IssuedTokenType<TokenPointer<MyEvolvableToken>> issuedEvolToken =
  13.   new IssuedTokenType<>(issuer, tokenPointer);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top