mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-29 13:41:47 +00:00
c113d682bd
We need to store NEO balance's LastUpdateHeight before GAS mint, because mint can call onNEP17Payment and onNEP17Payment can call NEO transfer which also calls GAS mint. Storing balance height allows to avoid recursion.
16 lines
No EOL
395 B
YAML
16 lines
No EOL
395 B
YAML
name: "Rubl"
|
|
supportedstandards: ["NEP-17"]
|
|
safemethods: ["balanceOf", "decimals", "symbol", "totalSupply"]
|
|
events:
|
|
- name: Transfer
|
|
parameters:
|
|
- name: from
|
|
type: Hash160
|
|
- name: to
|
|
type: Hash160
|
|
- name: amount
|
|
type: Integer
|
|
permissions:
|
|
- hash: ef4073a0f2b305a38ec4050e4d3d28bc40ea63f5
|
|
methods: ["transfer"]
|
|
- methods: ["onNEP17Payment"] |