.derupt-profile-trait
Profile traits plays a vital role in facilitating interactions between Derupt users.
Profile Traits
registration-activation
: to register user contracts as members.get-activation-status
: to get a user contract member status.send-message
: to send a Message that supports optional arguments.like-message
: to express appreciation for a Message by Liking it.dislike-message
: to express disapproval for a Message by Disliking it.favorable-reply-message
: to send a favorable Reply, supports optional arguments.unfavorable-reply-message
: to send a unfavorable Reply, supports optional arguments.
Work in Progress
;; title: derupt-profile-trait
;; version: 1.3.1
;; summary: Derupt Profile Trait Contract
(use-trait derupt-core-trait 'ST1ZK4MRVTQQJMVAAJQWBV2WPQ87QV2851YCTHD7X.derupt-core-trait.derupt-core-trait)
(use-trait derupt-ext-trait 'ST1ZK4MRVTQQJMVAAJQWBV2WPQ87QV2851YCTHD7X.derupt-ext-trait.derupt-ext)
(use-trait sip-009-trait 'ST1ZK4MRVTQQJMVAAJQWBV2WPQ87QV2851YCTHD7X.sip-009-trait-nft-standard.sip-009-trait)
(use-trait sip-010-trait 'ST1ZK4MRVTQQJMVAAJQWBV2WPQ87QV2851YCTHD7X.sip-010-trait-ft-standard.sip-010-trait)
(use-trait sip-013-trait 'ST1ZK4MRVTQQJMVAAJQWBV2WPQ87QV2851YCTHD7X.sip-013-trait-sft-standard.sip-013-trait)
(use-trait cryptocash-token-trait 'ST1ZK4MRVTQQJMVAAJQWBV2WPQ87QV2851YCTHD7X.cryptocash-token-trait.cryptocash-token)
(use-trait cryptocash-core-trait 'ST1ZK4MRVTQQJMVAAJQWBV2WPQ87QV2851YCTHD7X.cryptocash-core-trait.cryptocash-core)
(define-trait derupt-profile-trait
(
(registration-activation (principal) (response bool uint))
(get-activation-status (principal) (response bool uint))
(gift-message
(
principal
uint
(string-utf8 256)
bool
<sip-010-trait>
<derupt-core-trait>
(optional (buff 34))
(optional <derupt-ext-trait>)
(optional (list 10
{
stringutf8: (optional (string-utf8 256)),
stringascii: (optional (string-ascii 256)),
uint: (optional uint),
int: (optional int),
principal: (optional principal),
bool: (optional bool),
buff: (optional (buff 34)),
proxy: (optional (buff 2048)),
cryptocash-token-contract: (optional <cryptocash-token-trait>),
cryptocash-core-contract: (optional <cryptocash-core-trait>),
sip-009-contract: (optional <sip-009-trait>),
sip-010-contract: (optional <sip-010-trait>),
sip-013-contract: (optional <sip-013-trait>)
}
))
) (response bool uint)
)
(send-message
(
(string-utf8 256)
(optional (string-utf8 256))
(optional (string-utf8 256))
(optional (string-utf8 256))
(list 200 uint)
(string-utf8 256)
(optional <derupt-ext-trait>)
(optional (list 10
{
stringutf8: (optional (string-utf8 256)),
stringascii: (optional (string-ascii 256)),
uint: (optional uint),
int: (optional int),
principal: (optional principal),
bool: (optional bool),
buff: (optional (buff 34)),
proxy: (optional (buff 2048)),
cryptocash-token-contract: (optional <cryptocash-token-trait>),
cryptocash-core-contract: (optional <cryptocash-core-trait>),
sip-009-contract: (optional <sip-009-trait>),
sip-010-contract: (optional <sip-010-trait>),
sip-013-contract: (optional <sip-013-trait>)
}
))
<derupt-core-trait>
<cryptocash-core-trait>
) (response bool uint)
)
(like-message
(
principal
(string-utf8 256)
<cryptocash-token-trait>
<derupt-core-trait>
uint
(string-utf8 256)
(optional <derupt-ext-trait>)
(optional (list 10
{
stringutf8: (optional (string-utf8 256)),
stringascii: (optional (string-ascii 256)),
uint: (optional uint),
int: (optional int),
principal: (optional principal),
bool: (optional bool),
buff: (optional (buff 34)),
proxy: (optional (buff 2048)),
cryptocash-token-contract: (optional <cryptocash-token-trait>),
cryptocash-core-contract: (optional <cryptocash-core-trait>),
sip-009-contract: (optional <sip-009-trait>),
sip-010-contract: (optional <sip-010-trait>),
sip-013-contract: (optional <sip-013-trait>)
}
))
) (response bool uint)
)
(dislike-message
(
principal
(string-utf8 256)
<cryptocash-token-trait>
<cryptocash-core-trait>
<derupt-core-trait>
uint
uint
(string-utf8 256)
(optional <derupt-ext-trait>)
(optional (list 10
{
stringutf8: (optional (string-utf8 256)),
stringascii: (optional (string-ascii 256)),
uint: (optional uint),
int: (optional int),
principal: (optional principal),
bool: (optional bool),
buff: (optional (buff 34)),
proxy: (optional (buff 2048)),
cryptocash-token-contract: (optional <cryptocash-token-trait>),
cryptocash-core-contract: (optional <cryptocash-core-trait>),
sip-009-contract: (optional <sip-009-trait>),
sip-010-contract: (optional <sip-010-trait>),
sip-013-contract: (optional <sip-013-trait>)
}
))
) (response bool uint)
)
(favorable-reply-message
(
(string-utf8 256)
(optional (string-utf8 256))
(optional (string-utf8 256))
(string-utf8 256)
principal
(string-utf8 256)
(list 200 uint)
(string-utf8 256)
(optional <derupt-ext-trait>)
(optional (list 10
{
stringutf8: (optional (string-utf8 256)),
stringascii: (optional (string-ascii 256)),
uint: (optional uint),
int: (optional int),
principal: (optional principal),
bool: (optional bool),
buff: (optional (buff 34)),
proxy: (optional (buff 2048)),
cryptocash-token-contract: (optional <cryptocash-token-trait>),
cryptocash-core-contract: (optional <cryptocash-core-trait>),
sip-009-contract: (optional <sip-009-trait>),
sip-010-contract: (optional <sip-010-trait>),
sip-013-contract: (optional <sip-013-trait>)
}
))
<cryptocash-token-trait>
<cryptocash-core-trait>
<derupt-core-trait>
uint
) (response bool uint)
)
(unfavorable-reply-message
(
(string-utf8 256)
(optional (string-utf8 256))
(optional (string-utf8 256))
(string-utf8 256)
principal
(string-utf8 256)
(list 200 uint)
(string-utf8 256)
(optional <derupt-ext-trait>)
(optional (list 10
{
stringutf8: (optional (string-utf8 256)),
stringascii: (optional (string-ascii 256)),
uint: (optional uint),
int: (optional int),
principal: (optional principal),
bool: (optional bool),
buff: (optional (buff 34)),
proxy: (optional (buff 2048)),
cryptocash-token-contract: (optional <cryptocash-token-trait>),
cryptocash-core-contract: (optional <cryptocash-core-trait>),
sip-009-contract: (optional <sip-009-trait>),
sip-010-contract: (optional <sip-010-trait>),
sip-013-contract: (optional <sip-013-trait>)
}
))
<cryptocash-token-trait>
<cryptocash-core-trait>
<derupt-core-trait>
uint
uint
) (response bool uint)
)
)
)
Last updated