jton-contracts
Version:
Free TON contracts wrapped in jTON
30 lines • 949 B
TypeScript
import { Contract, ResultOfCall } from 'jton';
import { TonClient } from '@tonclient/core';
import { KeyPair } from '@tonclient/core/dist/modules';
import HighloadSinglesigContract from './source/bin/HighloadSinglesig';
export { HighloadSinglesigContract };
export interface SendTransactionIn {
dest: string;
value: number | string;
bounce: boolean;
flags: number | string;
payload: string;
}
export interface GetMessagesResult extends ResultOfCall {
out: {
messages: Message[];
};
}
export interface Message {
hash: string;
expireAt: string;
}
export declare class HighloadSinglesig extends Contract {
constructor(client: TonClient, keys: KeyPair, timeout?: number);
/**********
* PUBLIC *
**********/
sendTransaction(input: SendTransactionIn, keys?: KeyPair): Promise<ResultOfCall>;
getMessages(keys?: KeyPair): Promise<GetMessagesResult>;
}
//# sourceMappingURL=index.d.ts.map