NEO•ONE makes coding, testing and deploying NEO dapps easy, fast, efficient and enjoyable.
The complete end-to-end framework offers effortless startup and empowers you with tooling every step of the way.
Write idiomatic TypeScript smart contracts that look, feel and work just like a normal TypeScript program.
Test smart contracts with familiar frameworks like Jest using the intuitive client APIs.
With the most comprehensive documentation available for NEO, you'll always have a resource to reference.
import { withContracts } from '../generated/test';
describe('Token', () => {
test('has name, symbol and decimals properties', async () => {
await withContracts(async ({ token }) => {
const [name, symbol, decimals] = await Promise.all([token.name(), token.symbol(), token.decimals()]);
expect(name).toEqual('Eon');
expect(symbol).toEqual('EON');
expect(decimals.toNumber()).toEqual(8);
});
});
});