![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@tact-lang/emulator
Advanced tools
Emulation toolkit for TON Smart Contracts
yarn add @tact-lang/emulator ton-core ton-crypto
import { ContractSystem, randomAddress } from '@tact-lang/emulator';
import { WalletContractV4 } from 'ton';
// Contract System is a virtual environment that emulates the TON blockchain
const system = await ContractSystem.create();
// Treasure is a contract that has 1m of TONs and is a handy entry point for your smart contracts
let treasure = await system.treasure('my-treasure');
system.name(treasure, 'my treasure'); // Set a name for the contract. Useful for snapshot testing.
// Update verbosity
system.globalVerbosity = Verbosity.DEBUG; // Global parameter
system.verbosity(treasure, Verbosity.ERROR); // Overwrite for a specific contract
// Track contract transactions and events
let tracker = system.track(treasure);
// Logger to collect VM logs from a contract
let logger = system.log(treasure);
// Create a random unknown address that would be treated as unititialized contract
let unknownAddress = randomAddress('some-unknown-seed'); // This seed is used to generate deterministic address
// Send an empty message to the unknown address
await treasure.send({
to: unknownAddress,
bounce: true,
});
// Run a block
let transactions = await system.run();
console.warn(inspect(transactions, false, 10000));
// Open a contract
let wallet = system.open(WalletContractV4.create({ workchain: 0, publicKey: <some-test-key> }));
// Show contract logs
console.warn(logger.collect());
// Test events and transactions
expect(tracker.collect()).toMatchSnapshot();
MIT
FAQs
Emulation toolkit for TON Smart Contracts
We found that @tact-lang/emulator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.