@ton/core
Version:
Core TypeScript library that implements low level primitives for TON blockchain.
29 lines (28 loc) • 678 B
TypeScript
/**
* Copyright (c) Whales Corp.
* All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/// <reference types="node" />
import { Maybe } from "../utils/maybe";
import { ExtraCurrency } from '../types/ExtraCurrency';
export type ContractState = {
balance: bigint;
extracurrency: Maybe<ExtraCurrency>;
last: {
lt: bigint;
hash: Buffer;
} | null;
state: {
type: 'uninit';
} | {
type: 'active';
code: Maybe<Buffer>;
data: Maybe<Buffer>;
} | {
type: 'frozen';
stateHash: Buffer;
};
};