forked from garyblankenship/laravel-cardanodb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CardanoDB.php
30 lines (26 loc) · 711 Bytes
/
CardanoDB.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
namespace Vampires\CardanoDB;
/**
* Class CardanoDB
*
* todo:
* CardanoDB::policy('policy_id'); // {[policy, minted, ...]}
* CardanoDB::policy('policy_id')->assets(); // {[token1],[token2],}
* CardanoDB::wallet('stakeOraddr')->balance(); // 398.35235
* CardanoDB::wallet('stakeOraddr')->info(); // {stake1:"..", addr1:"..", balance:398.35235, ...}
*/
class CardanoDB
{
protected function wallet($address)
{
return new CardanoWallet($address);
}
protected function policy($policy)
{
return new CardanoPolicy($policy);
}
public static function __callStatic($method, $parameters)
{
return (new static)->$method(...$parameters);
}
}