lecle / aloxide

Aloxide is a pragmatic abstraction layer for various blockchain softwares.
Apache License 2.0
10 stars 5 forks source link

As a User, I want to generate my custom action for my smart contract #60

Open danielvo11 opened 4 years ago

danielvo11 commented 4 years ago

Configuration:

actions:
  - name: invalidateVote
    fields:
      - name: voteId
        type: uint64_t
     -  name: reason
        type: string

generated action:

EOS:

[[eosio::action]] void invalidvote(uint64_t voteId, string reason) {
}

ICON:

@external
def invalidvote(self, voteId: int, reason: string):
manh-vv commented 4 years ago

It would be a good idea if we can support generating code for custom actions too. For now, developers can still update the generated smart-contract themselves.

manh-vv commented 4 years ago

I marked it with "invalid" lable so that we can ignore this issue for a while.