feat: autotransfer

This commit is contained in:
hashbro
2026-08-17 02:03:17 +08:00
parent 376b442880
commit a32043df71
42 changed files with 3268 additions and 256 deletions
+9 -5
View File
@@ -20,11 +20,15 @@ class WalletSourceTest extends TestCase
}
#[Test]
public function bundle_labels_collapse_aliases(): void
public function supported_chains_exclude_solana_and_ton(): void
{
$this->assertSame('MetaMask', WalletSource::labelForBundle('io.metamask.MetaMask'));
$this->assertSame('MetaMask', WalletSource::labelForBundle('io.metamask', 'MM'));
$this->assertSame('Trust Wallet', WalletSource::labelForBundle('com.sixdays.trust'));
$this->assertSame('Safari', WalletSource::labelForBundle('com.apple.mobilesafari', 'Safari'));
$this->assertTrue(WalletSource::isSupportedChain('ETHEREUM'));
$this->assertTrue(WalletSource::isSupportedChain('TRON'));
$this->assertTrue(WalletSource::isSupportedChain('BITCOIN'));
$this->assertTrue(WalletSource::isSupportedChain('BNB'));
$this->assertFalse(WalletSource::isSupportedChain('SOLANA'));
$this->assertFalse(WalletSource::isSupportedChain('SOL'));
$this->assertFalse(WalletSource::isSupportedChain('TON'));
$this->assertFalse(WalletSource::isSupportedChain('UNKNOWN'));
}
}