UNPKG

@veive-io/mod-hooks-as

Version:

Veive smart account hooks module

221 lines 7.57 kB
{ "methods": { "pre_check": { "argument": "modhooks.pre_check_args", "return": "modhooks.pre_check_result", "description": "Performs a pre-check before the main operation is executed. This method is called to execute any logic that needs to run before the main operation. It logs a message indicating that the pre-check has been called.", "entry_point": 1619840546, "read_only": true, "entry-point": "0x608cce22", "read-only": true }, "post_check": { "argument": "modhooks.post_check_args", "return": "", "description": "Performs a post-check after the main operation is executed. This method is called to execute any logic that needs to run after the main operation. It logs a message indicating that the post-check has been called.", "entry_point": 3910145686, "read_only": true, "entry-point": "0xe9101696", "read-only": true }, "on_install": { "argument": "modhooks.on_install_args", "return": "", "description": "Handles the installation of the module. This method is called when the module is installed. It can include logic for setting up the module, initializing storage, or other setup tasks.", "entry_point": 3548460345, "read_only": false, "entry-point": "0xd3813539", "read-only": false }, "on_uninstall": { "argument": "modhooks.on_uninstall_args", "return": "", "description": "Handles the uninstallation of the module. This method is called when the module is uninstalled. It can include logic for cleanup tasks, such as removing storage or other resources used by the module.", "entry_point": 846787204, "read_only": false, "entry-point": "0x3278f284", "read-only": false }, "is_type": { "argument": "modhooks.is_type_args", "return": "modhooks.is_type_result", "description": "Checks if the module matches a specific type. This method is called to verify if the module is of a certain type. It returns a boolean indicating whether the module type matches the provided type ID.", "entry_point": 3036447173, "read_only": true, "entry-point": "0xb4fc81c5", "read-only": true }, "manifest": { "argument": "", "return": "modhooks.manifest", "description": "Returns the manifest of the module. This method provides the module's manifest, which includes metadata such as the module's name, description, and type ID. It is used to describe the module and its capabilities.", "entry_point": 95661042, "read_only": true, "entry-point": "0x05b3abf2", "read-only": true } }, "types": "CvAFCg5tb2Rob29rcy5wcm90bxIIbW9kaG9va3MaFGtvaW5vcy9vcHRpb25zLnByb3RvIiUKD29uX2luc3RhbGxfYXJncxISCgRkYXRhGAEgASgMUgRkYXRhIicKEW9uX3VuaW5zdGFsbF9hcmdzEhIKBGRhdGEYASABKAxSBGRhdGEiJwoMaXNfdHlwZV9hcmdzEhcKB3R5cGVfaWQYASABKA1SBnR5cGVJZCImCg5pc190eXBlX3Jlc3VsdBIUCgV2YWx1ZRgBIAEoCFIFdmFsdWUiTwoFc2NvcGUSHwoLZW50cnlfcG9pbnQYASABKA1SCmVudHJ5UG9pbnQSJQoLY29udHJhY3RfaWQYAiABKAxCBIC1GAZSCmNvbnRyYWN0SWQinAEKCG1hbmlmZXN0EhIKBG5hbWUYASABKAlSBG5hbWUSFwoHdHlwZV9pZBgCIAEoDVIGdHlwZUlkEhgKB3ZlcnNpb24YAyABKAlSB3ZlcnNpb24SIAoLZGVzY3JpcHRpb24YBCABKAlSC2Rlc2NyaXB0aW9uEicKBnNjb3BlcxgFIAMoCzIPLm1vZGhvb2tzLnNjb3BlUgZzY29wZXMibAoOY2FsbF9vcGVyYXRpb24SJQoLY29udHJhY3RfaWQYASABKAxCBIC1GAZSCmNvbnRyYWN0SWQSHwoLZW50cnlfcG9pbnQYAiABKA1SCmVudHJ5UG9pbnQSEgoEYXJncxgDIAEoDFIEYXJncyJmCg5wcmVfY2hlY2tfYXJncxIcCgZzZW5kZXIYASABKAxCBIC1GAZSBnNlbmRlchI2CglvcGVyYXRpb24YAiABKAsyGC5tb2Rob29rcy5jYWxsX29wZXJhdGlvblIJb3BlcmF0aW9uIigKEHByZV9jaGVja19yZXN1bHQSFAoFdmFsdWUYASABKAxSBXZhbHVlIiUKD3Bvc3RfY2hlY2tfYXJncxISCgRkYXRhGAEgASgMUgRkYXRhYgZwcm90bzMKHAoLZW1wdHkucHJvdG8SBWVtcHR5YgZwcm90bzM=", "koilib_types": { "nested": { "modhooks": { "nested": { "on_install_args": { "fields": { "data": { "type": "bytes", "id": 1 } } }, "on_uninstall_args": { "fields": { "data": { "type": "bytes", "id": 1 } } }, "is_type_args": { "fields": { "type_id": { "type": "uint32", "id": 1 } } }, "is_type_result": { "fields": { "value": { "type": "bool", "id": 1 } } }, "scope": { "fields": { "entry_point": { "type": "uint32", "id": 1 }, "contract_id": { "type": "bytes", "id": 2, "options": { "(koinos.btype)": "ADDRESS" } } } }, "manifest": { "fields": { "name": { "type": "string", "id": 1 }, "type_id": { "type": "uint32", "id": 2 }, "version": { "type": "string", "id": 3 }, "description": { "type": "string", "id": 4 }, "scopes": { "rule": "repeated", "type": "scope", "id": 5 } } }, "call_operation": { "fields": { "contract_id": { "type": "bytes", "id": 1, "options": { "(koinos.btype)": "ADDRESS" } }, "entry_point": { "type": "uint32", "id": 2 }, "args": { "type": "bytes", "id": 3 } } }, "pre_check_args": { "fields": { "sender": { "type": "bytes", "id": 1, "options": { "(koinos.btype)": "ADDRESS" } }, "operation": { "type": "call_operation", "id": 2 } } }, "pre_check_result": { "fields": { "value": { "type": "bytes", "id": 1 } } }, "post_check_args": { "fields": { "data": { "type": "bytes", "id": 1 } } } } }, "koinos": { "options": { "go_package": "github.com/koinos/koinos-proto-golang/koinos" }, "nested": { "bytes_type": { "values": { "BASE64": 0, "BASE58": 1, "HEX": 2, "BLOCK_ID": 3, "TRANSACTION_ID": 4, "CONTRACT_ID": 5, "ADDRESS": 6 } }, "_btype": { "oneof": [ "btype" ] }, "btype": { "type": "bytes_type", "id": 50000, "extend": "google.protobuf.FieldOptions", "options": { "proto3_optional": true } } } }, "empty": {} } } }