@stryke-xyz/premarket-contracts
v1.0.0
Published
Typed deployment addresses for Premarket contracts
Readme
Premarket Contracts
Typed deployment addresses for Premarket contracts.
Install
npm install @stryke-xyz/premarket-contractsUsage
import deployments, {
addresses,
getAddress,
} from "@stryke-xyz/premarket-contracts";
const exchange = getAddress({
chainId: 4663,
type: "exchange",
});
const vault = addresses[4326].vault;
// The default export exposes the same API.
const registry = deployments.getAddress({
chainId: 4663,
type: "registry",
});getAddress returns undefined when the chain is not included in this
release. The exported Address, ContractAddressType, and GetAddressParams
types are available for TypeScript consumers.
Development
pnpm install
pnpm run typecheck
pnpm testpnpm run build writes JavaScript, source maps, and TypeScript declarations to
dist/. The package publishes the built output, source files, and this README.
