evm/Token
examples/evm/Token.omg
examples/evm/Token.omg21 lines
1-- Assemble the constructor, storage layout and routed handler declarations.
2let I = ./Token/Interface.omg
3let M = ./Token/Implementation.omg
4let C = M.C
5let State = M.State
6let H = M.storage.bind M.implement
7let layout : std:EVM/State/Layout.Selection State = std:EVM/State/Layout.derive State
8let contract =
9 C.composeWithLayout
10 layout
11 { Args = C.solidityCodec I.Args }
12 { constructor = H.constructor, facets = [ H.methods.facet ] }
13in { contract
14 , layout
15 , State
16 , Args = I.Args
17 , Imm = I.Imm
18 , Events = I.Events
19 , Errors = I.Errors
20 , interface = (C.use I.operations).solidity
21 }