token namespace emits SauceScript for token operations: ERC-20 on an EVM compile target, SPL Token on svm. It is TypeScript that writes SauceScript for a host program; a SauceScript program imports the @sauce/token library instead. token.Token.transfer({ token, to, amount }).toSauceScript("evm") returns an object whose source is a program routes.compileSauceProgram compiles. token.Token is also the root export Token.
@eco-incorp/sauce.
token.evmTransferStatements
Function · @eco-incorp/sauce
transfer, with OpenZeppelin SafeERC20 semantics - see token/safe.ts for why this is not
IERC20.at(t).transfer(...). balanceOf keeps that binding: a uint256 return is always there.
token.evmApproveStatements
Function · @eco-incorp/sauce
approve, with SafeERC20 semantics plus forceApprove’s reset of a non-zero allowance.
token.evmBalanceExpression
Function · @eco-incorp/sauce
token.ERC20_IMPORT_LINE
Variable · @eco-incorp/sauce
