@btc-vision/btc-runtime
Version:
Bitcoin Smart Contract Runtime
15 lines (12 loc) • 428 B
text/typescript
import { u256 } from '@btc-vision/as-bignum/assembly';
import { BytesWriter } from '../../buffer/BytesWriter';
import { U256_BYTE_LENGTH } from '../../utils/lengths';
import { NetEvent } from '../NetEvent';
export class BurnEvent extends NetEvent {
constructor(amount: u256) {
const data: BytesWriter = new BytesWriter(U256_BYTE_LENGTH);
data.writeU256(amount);
super('Burn', data);
}
}