chainhook icon indicating copy to clipboard operation
chainhook copied to clipboard

Revisit ImplementTrait Predicate spec

Open lgalabru opened this issue 2 years ago • 2 comments

    "if_this": {
        "scope": "contract_deployment",
        "implement_trait": "ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM.sip09-protocol"
    },

should probably be

    "if_this": {
        "scope": "contract_deployment",
        "implement_traits": ["sip09", "ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM.my-custom-trait"]
    },

lgalabru avatar Feb 20 '23 05:02 lgalabru

Hi @lgalabru , any plans to implement this trait any time soon? I'm building a platform where users will be able to deploy their own contracts based on a template. If I make this template a custom trait and if this chainhook would allow transactions and contract deployments as scope, it would make it super easy to keep track of those contracts. 🙏

vini-btc avatar Nov 23 '23 07:11 vini-btc

I would also be interested in that feature

pradel avatar Dec 15 '23 13:12 pradel