.derupt-ext
Developers can extend the functionality of Derupt by creating Extensions for user to use.
More Details Coming Soon
(sample extensions coming soon)
Extension Contract Metadata
The extension contract metadata represents the top level summary of the extension.
Extension Description Metadata
The extension description metadata enables greater control over the integration and functionality of the Extension within the Derupt UX/UI, facilitating for you:
Extension Information Summary (
info
):A general Summary / Explanation of the Extension
Availability for specific Core Operation (
ops
):To enable use of the Extension by Derupt Core Operations
Applicable Transaction Post Conditions (
postconditions
):Set the appropriate type:
ft
,nft
, and orstx
Function Arguments from the User (
argsFromUser
)To enable the applicable argument input fields to be rendered and supplied by the user. (
render
set visibility of the argument input field to the user in the Extension options modal) (label
set the label you want to apply to the visible field) (order
set the rendered order of argument input fields) (optional
representative if input field is an optional input [false
means the argument input field is required,true
means the argument input field is optional]) Note:argsFromUser
are passed asextra
function arguments in core operation calls.
Extension Contract Metadata pointers is updated via update-metadata
Extension Description Metadata is updated via derupt-ext-metadata.json
(or equivalent)
Extensions must follow.derupt-ext-trait
standard
Extension execution exec-ext-func
function, taking extras
as an argument.
Developers should defineargsFromUser
to ensure specific fields are presented to the user during the presentation of ExtensionModal
in order to collect users input if needed.
Users can have only 1 extension called, per core function call: eg
can have 1
ext
called duringsend-message
can have 1
ext
called duringlike-message
can have 1
ext
called duringdislike-message
can have 1
ext
called duringfavorable-reply-message
can have 1
ext
called duringunfavorable-reply-message
can have 1
ext
called duringgift-message
(note: users can change the enabled extension over time)
Last updated