-
Notifications
You must be signed in to change notification settings - Fork 0
/
ContractInterface.php
81 lines (61 loc) · 2.06 KB
/
ContractInterface.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
namespace Yoruchiaki\WebaseFront\Interfaces;
use Yoruchiaki\WebaseFront\ValueObjects\Solidity;
use Yoruchiaki\WebaseFront\ValueObjects\SolidityAbi;
use Yoruchiaki\WebaseFront\ValueObjects\SoliditySol;
use Yoruchiaki\WebaseFront\ValueObjects\SolidityBin;
use Yoruchiaki\WebaseFront\ValueObjects\TransObject;
interface ContractInterface
{
public function abiInfo(
Solidity $solidity,
string $contractAddress
): array;
public function deployWithSign(
string $signUserId,
Solidity $solidity,
string $version = null
): array;
public function deploy(
string $user,
Solidity $solidity
): array;
/**
* @return mixed
* @deprecated
*/
public function compileJava(
Solidity $solidity,
string $packageName
): array;
public function save(
Solidity $solidity,
string $contractPath
): array;
public function deleteContract(int $contractId): array;
public function contractList(
int $pageNumber = 1,
int $pageSize = 10,
string $contractName = null,
int $contractStatus = null,
string $contractAddress = null,
string $contractPath = null
): array;
public function ifChanged(int $contractId): array;
public function contractCompile(string $contractName, SoliditySol $soliditySource): array;
public function multiContractCompile(string $contractZipBase64): array;
public function contractListFull(int $contractStatus): array;
public function findOne(int $contractId): array;
public function findContractPathList(): array;
public function addContractPath(string $contractPath): array;
public function deleteContractPath(string $contractPath): array;
public function deleteContractByPath(string $contractPath): array;
public function registerCns(
Solidity $solidity,
string $contractAddress,
string $cnsName,
string $version,
string $signUserId
): array;
public function findCns(string $contractAddress): array;
}