TypeScript

Last updated 9 days ago

TypeScript API

External module: "near"

Index

Modules

Classes

Type aliases

Variables

Functions

Type aliases

BufferTypeIndex

Ƭ BufferTypeIndex: u32

Defined in near.ts:1

Variables

<Const> BUFFER_TYPE_CURRENT_ACCOUNT_ID

● BUFFER_TYPE_CURRENT_ACCOUNT_ID: BufferTypeIndex = 2

Defined in near.ts:4

<Const> BUFFER_TYPE_ORIGINATOR_ACCOUNT_ID

● BUFFER_TYPE_ORIGINATOR_ACCOUNT_ID: BufferTypeIndex = 1

Defined in near.ts:3

<Let> contractContext

● contractContext: ContractContext = new ContractContext()

Defined in near.ts:147

<Let> globalStorage

● globalStorage: GlobalStorage = new GlobalStorage()

Defined in near.ts:146

Functions

input_read_into

input_read_into(ptr: usize): void

Defined in near.ts:299

Parameters:

Name

Type

ptr

usize

Returns: void

input_read_len

input_read_len(): usize

Defined in near.ts:297

Returns: usize

read_into

read_into(type_index: u32, key: usize, value: usize): void

Defined in near.ts:307

Parameters:

Name

Type

type_index

u32

key

usize

value

usize

Returns: void

read_len

read_len(type_index: u32, key: usize): u32

Defined in near.ts:305

Parameters:

Name

Type

type_index

u32

key

usize

Returns: u32

return_value

return_value(value_ptr: usize): void

Defined in near.ts:302

Parameters:

Name

Type

value_ptr

usize

Returns: void

storage_iter

storage_iter(prefix: usize): u32

Defined in near.ts:288

Parameters:

Name

Type

prefix

usize

Returns: u32

storage_iter_next

storage_iter_next(id: u32): u32

Defined in near.ts:290

Parameters:

Name

Type

id

u32

Returns: u32

storage_iter_peek_into

storage_iter_peek_into(id: u32, value: usize): void

Defined in near.ts:294

Parameters:

Name

Type

id

u32

value

usize

Returns: void

storage_iter_peek_len

storage_iter_peek_len(id: u32): usize

Defined in near.ts:292

Parameters:

Name

Type

id

u32

Returns: usize

storage_read_into

storage_read_into(key: usize, value: usize): void

Defined in near.ts:286

Parameters:

Name

Type

key

usize

value

usize

Returns: void

storage_read_len

storage_read_len(key: usize): usize

Defined in near.ts:284

Parameters:

Name

Type

key

usize

Returns: usize

storage_write

storage_write(key: usize, value: usize): void

Defined in near.ts:282

Parameters:

Name

Type

key

usize

value

usize

Returns: void