neo_solidity/cli/bytecode/bytecode_builtins/builtin_call/
storage.rs1fn emit_storage_find(bytecode: &mut Vec<u8>, arg_count: usize) {
2 if arg_count == 1 {
6 bytecode.push(0x10); bytecode.push(0x50); } else {
9 bytecode.push(0x50); }
12 emit_syscall(bytecode, "System.Storage.GetContext");
13 emit_syscall(bytecode, "System.Storage.Find");
14}
15
16fn emit_storage_put(bytecode: &mut Vec<u8>) {
17 bytecode.push(0x50); emit_syscall(bytecode, "System.Storage.GetContext");
21 emit_syscall(bytecode, "System.Storage.Put");
22 bytecode.push(0x11); }
24
25fn emit_storage_get(bytecode: &mut Vec<u8>) {
26 emit_syscall(bytecode, "System.Storage.GetReadOnlyContext");
27 emit_syscall(bytecode, "System.Storage.Get");
28}
29
30fn emit_storage_delete(bytecode: &mut Vec<u8>) {
31 emit_syscall(bytecode, "System.Storage.GetContext");
32 emit_syscall(bytecode, "System.Storage.Delete");
33 bytecode.push(0x11); }