Files
smom-dbis-138/script/tokenization/RegisterToken.s.sol
T
defiQUG 2b52cc6e32 refactor(archive): move historical contracts and adapters to archive directory
- Archived multiple non-EVM adapters (Algorand, Hedera, Tron, TON, Cosmos, Solana) and compliance contracts (IndyVerifier) to `archive/solidity/contracts/`.
- Updated documentation to reflect the historical status of archived components.
- Adjusted `foundry.toml` and `README.md` for clarity on historical dependencies and configurations.
- Enhanced Makefile and package.json scripts for improved contract testing and building processes.
- Removed obsolete contracts (AlltraCustomBridge, CommodityCCIPBridge, ISO4217WCCIPBridge, VaultBridgeAdapter) from the main directory.
- Updated implementation reports to indicate archived status for various components.
2026-04-12 18:21:05 -07:00

31 lines
820 B
Solidity

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import {Script, console} from "forge-std/Script.sol";
import {TokenRegistry} from "../../contracts/tokenization/TokenRegistry.sol";
contract RegisterToken is Script {
function run(
address registryAddress,
address tokenAddress,
string memory tokenId,
string memory underlyingAsset,
address issuer,
string memory backingReserve
) external {
TokenRegistry registry = TokenRegistry(registryAddress);
vm.startBroadcast();
registry.registerToken(
tokenAddress,
tokenId,
underlyingAsset,
issuer,
backingReserve
);
vm.stopBroadcast();
console.log("Token registered:", tokenId);
}
}