Skip to main content
Glama

OpenZeppelin Contracts MCP Server

Official
by OpenZeppelin
stablecoin.compile.test.ts4.43 kB
import test from 'ava'; import { runRustCompilationTest } from './utils/compile-test'; import { buildStablecoin } from './stablecoin'; test.serial( 'compilation basic stablecoin', runRustCompilationTest( buildStablecoin, { kind: 'Stablecoin', name: 'MyStablecoin', symbol: 'MST', }, { snapshotResult: false }, ), ); test.serial( 'compilation stablecoin burnable', runRustCompilationTest( buildStablecoin, { kind: 'Stablecoin', name: 'MyStablecoin', symbol: 'MST', burnable: true, }, { snapshotResult: false }, ), ); test.serial( 'compilation stablecoin pausable', runRustCompilationTest( buildStablecoin, { kind: 'Stablecoin', name: 'MyStablecoin', symbol: 'MST', pausable: true, }, { snapshotResult: false }, ), ); test.serial( 'compilation stablecoin burnable pausable', runRustCompilationTest( buildStablecoin, { kind: 'Stablecoin', name: 'MyStablecoin', symbol: 'MST', burnable: true, pausable: true, }, { snapshotResult: false }, ), ); test.serial( 'compilation stablecoin preminted', runRustCompilationTest( buildStablecoin, { kind: 'Stablecoin', name: 'MyStablecoin', symbol: 'MST', premint: '1000', }, { snapshotResult: false }, ), ); test.serial( 'compilation stablecoin premint of 0', runRustCompilationTest( buildStablecoin, { kind: 'Stablecoin', name: 'MyStablecoin', symbol: 'MST', premint: '0', }, { snapshotResult: false }, ), ); test.serial( 'compilation stablecoin mintable', runRustCompilationTest( buildStablecoin, { kind: 'Stablecoin', name: 'MyStablecoin', symbol: 'MST', mintable: true, }, { snapshotResult: false }, ), ); test.serial( 'compilation stablecoin ownable', runRustCompilationTest( buildStablecoin, { kind: 'Stablecoin', name: 'MyStablecoin', symbol: 'MST', access: 'ownable', }, { snapshotResult: false }, ), ); test.serial( 'compilation stablecoin roles', runRustCompilationTest( buildStablecoin, { kind: 'Stablecoin', name: 'MyStablecoin', symbol: 'MST', access: 'roles', }, { snapshotResult: false }, ), ); test.serial( 'compilation stablecoin allowlist', runRustCompilationTest( buildStablecoin, { kind: 'Stablecoin', name: 'MyStablecoin', symbol: 'MST', limitations: 'allowlist', }, { snapshotResult: false }, ), ); test.serial( 'compilation stablecoin blocklist', runRustCompilationTest( buildStablecoin, { kind: 'Stablecoin', name: 'MyStablecoin', symbol: 'MST', limitations: 'blocklist', }, { snapshotResult: false }, ), ); test.serial( 'compilation stablecoin full - ownable, allowlist', runRustCompilationTest( buildStablecoin, { kind: 'Stablecoin', name: 'MyStablecoin', symbol: 'MST', premint: '2000', access: 'ownable', limitations: 'allowlist', burnable: true, mintable: true, pausable: true, }, { snapshotResult: false }, ), ); test.serial( 'compilation stablecoin full - ownable, blocklist', runRustCompilationTest( buildStablecoin, { kind: 'Stablecoin', name: 'MyStablecoin', symbol: 'MST', premint: '2000', access: 'ownable', limitations: 'blocklist', burnable: true, mintable: true, pausable: true, }, { snapshotResult: false }, ), ); test.serial( 'compilation stablecoin full - roles, allowlist', runRustCompilationTest( buildStablecoin, { kind: 'Stablecoin', name: 'MyStablecoin', symbol: 'MST', premint: '2000', access: 'roles', limitations: 'allowlist', burnable: true, mintable: true, pausable: true, }, { snapshotResult: false }, ), ); test.serial( 'compilation stablecoin full - roles, blocklist', runRustCompilationTest( buildStablecoin, { kind: 'Stablecoin', name: 'MyStablecoin', symbol: 'MST', premint: '2000', access: 'roles', limitations: 'blocklist', burnable: true, mintable: true, pausable: true, }, { snapshotResult: false }, ), );

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/OpenZeppelin/contracts-wizard'

If you have feedback or need assistance with the MCP directory API, please join our Discord server