- // on more details.
-
- // Necessary headers. This script will need to perform syscalls to read current
- // transaction structure, then parse WitnessArgs data structure in molecule format.
- #include "ckb_syscalls.h"
- #include "protocol.h"
-
- // Error definitions
- #define ERROR_UNKNOWN -1
- #define ERROR_WRONG_NUMBER_OF_ARGUMENTS -2
- #define ERROR_SYSCALL -4
- #define ERROR_BUFFER_NOT_ENOUGH -10
- #define ERROR_ENCODING -11
- #define ERROR_WITNESS_TOO_LONG -12
- #define ERROR_OVERFLOW -13
- #define ERROR_INVALID_WITHDRAW_BLOCK -14
- #define ERROR_INCORRECT_CAPACITY -15
- #define ERROR_INCORRECT_EPOCH -16
- #define ERROR_INCORRECT_SINCE -17
- #define ERROR_TOO_MANY_OUTPUT_CELLS -18
- #define ERROR_NEWLY_CREATED_CELL -19