Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> Co-authored-by: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com>
11 lines
366 B
JavaScript
11 lines
366 B
JavaScript
// Shared native address/storage syntax; caller/callee interpretation stays separate.
|
|
import { z } from "zod";
|
|
import { hex } from "./native-contract.mjs";
|
|
export const nativeLocation = z.strictObject({
|
|
space: z.string().min(1),
|
|
offset: hex,
|
|
});
|
|
export const nativeStorage = nativeLocation.extend({
|
|
size_bytes: z.number().int().positive().max(0x7fffffff),
|
|
});
|