Skip to content

Instantly share code, notes, and snippets.

@jaekwon
Last active January 3, 2018 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaekwon/c37647670bce4aa87b8e69076944be8e to your computer and use it in GitHub Desktop.
Save jaekwon/c37647670bce4aa87b8e69076944be8e to your computer and use it in GitHub Desktop.
```
sdk.ChainDecorators(
...
customTxParseDecorator,
auth.Decorator(perms.SetFn("AUTH")),
coins.Decorator(perms.Get("AUTH"), perms.SetFn("COINS")), // set ctx.Set(coinstore.coinsPerm, coinstore.NewCoinStore(ms.GetKVStore("main")))
fees.Decorator(perms.Get("COINS")) // ctx.Get(coinstore.coinsPerm).(CoinStore),
sketchy.Decorator, // doesn't have authKey
...
.WithHandler(
...
)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment