Permission allows you to manage permissions for IP Accounts within Story.
Method |
---|
set_permission |
ip_id
: The IP ID that grants the permission for signer
.signer
: The address that can call to
on behalf of the ipAccount
.to
: The address that can be called by the signer
(currently only modules can be to
)permission
: The new permission level.func
: [Optional] The function selector string of to
that can be called by the signer
on behalf of the ipAccount
. By default, it allows all functions.tx_options
: [Optional] Transaction options dictionary.Method |
---|
create_set_permission_signature |
ip_id
: The IP ID that grants the permission for signer
.signer
: The address that can call to
on behalf of the ipAccount
.to
: The address that can be called by the signer
(currently only modules can be to
)permission
: The new permission level.func
: [Optional] The function selector string of to
that can be called by the signer
on behalf of the ipAccount
. By default, it allows all functions.deadline
: [Optional] The deadline for the signature in milliseconds, default is 1000ms.tx_options
: [Optional] Transaction options dictionary.Method |
---|
set_all_permissions |
ip_id
: The IP ID that grants the permission for signer
.signer
: The address of the signer receiving the permissions.permission
: The new permission.tx_options
: [Optional] Transaction options dictionary.