Skip to content

Instantly share code, notes, and snippets.

@mariano-aguero
Created April 20, 2020 17:45
Show Gist options
  • Save mariano-aguero/21624778dbd3249e05a295c83d0bbba3 to your computer and use it in GitHub Desktop.
Save mariano-aguero/21624778dbd3249e05a295c83d0bbba3 to your computer and use it in GitHub Desktop.
FA12 store
type account is record
balance: nat;
allowances: map(address, nat);
end
type store is record
owners: set(address);
decimals: nat; // Added this property used in the erc20 ethereum specification
symbol: string; // Added this property used in the erc20 ethereum specification
name: string; // Added this property used in the erc20 ethereum specification
totalSupply: nat;
accounts: big_map(address, account);
end
type return is list(operation) * store;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment