SMART CONTRACTS
← Contract catalogBondToken
Manage debt-like tokens by class and issuance nonce.
Role and use
Use classes for terms and nonces for issuance units. Combine with DebtManager for coupon and redemption operations.
Integration considerationsMap classId and nonceId to agreement records. Token issuance through issue is separate from funding and claiming coupon payments.
Key SDK operations
These operations are exposed by BondTokenHelper in @hazbase/kit@0.9.0. The signatures below are type definitions; see the SDK reference for parameter structures and the complete interface.
typescript
import { BondTokenHelper } from '@hazbase/kit';createClass
typescript
async createClass(classId: BigNumberish, data: Values[]): Promise<TransactionReceipt>createNonce
typescript
async createNonce(classId: BigNumberish, nonceId: BigNumberish, data: Values[]): Promise<TransactionReceipt>issue
typescript
async issue(to: string, classId: BigNumberish, nonceId: BigNumberish, amount: BigNumberish): Promise<TransactionReceipt>snapshot
typescript
async snapshot(): Promise<{ id: bigint | null; receipt: TransactionReceipt }>Related contracts
Put it into practice
Debt & asset finance
See the data model, processing sequence and SDK code for an application-level implementation.
Read the implementation patternSpecification and source
The Solidity source is pinned to the revision below. Match it with the SDK version and your network’s implementation address and ABI.
bond-token/contracts/BondToken.solSource revision: b53a5b5