# ExtendedSymbol
An extended symbol stores code, precision of the token amount and a contract name.
# Constructors
constructor( public sym: Symbol, public contract: Name )sym- TheSymbolobject. Example:Symbol("XPR", 4)contract- TheNameobject with for the contractExample: `Name.fromString('mycontract')`Example:
import { ExtendedSymbol, Symbol, Name } from 'proton-tsc' const symbol = new ExtendedSymbol(new Symbol("XPR", 4), Name.fromString('mycontract'))
# Instance Methods
toString(): stringReturns the extended symbol as a string in format
precision,symbol@contractUsestoStringmethod onSymbolobject for the part before@signExample:
const symbol = new ExtendedSymbol(new Symbol("XUSDC", 6), Name.fromString('mycontract')); print(symbol.toString()); // 6,XUSDC@mycontract
# Static Methods
static function eq(a: ExtendedSymbol, b: ExtendedSymbol): boolChecks that symbols and contracts are equal for objects
Throws if:
- Symbols do not match or contracts do not match
 
static function neq(a: ExtendedSymbol, b: ExtendedSymbol): boolChecks that symbols and contracts are not equal for objects
Throws if:
- Symbols are equal and contracts are equal
 
static function lt(a: ExtendedSymbol, b: ExtendedSymbol): boolChecks that the symbol
ais less thanband contractais less thanbThrows if:
- Symbol 
ais greater or equalbor contractais greater or equalb 
- Symbol