13
13
### getAllPublishedContracts
14
14
15
15
``` solidity
16
- function getAllPublishedContracts(address publisher ) external view returns (struct IContractPublisher.CustomContractInstance[] published)
16
+ function getAllPublishedContracts(address) external pure returns (struct IContractPublisher.CustomContractInstance[] published)
17
17
```
18
18
19
- Returns the latest version of all contracts published by a publisher.
19
+
20
20
21
21
22
22
23
23
#### Parameters
24
24
25
25
| Name | Type | Description |
26
26
| ---| ---| ---|
27
- | publisher | address | The address of the publisher.
27
+ | _ 0 | address | undefined
28
28
29
29
#### Returns
30
30
31
31
| Name | Type | Description |
32
32
| ---| ---| ---|
33
- | published | IContractPublisher.CustomContractInstance[ ] | An array of all contracts published by the publisher.
33
+ | published | IContractPublisher.CustomContractInstance[ ] | undefined
34
34
35
35
### getPublishedContract
36
36
37
37
``` solidity
38
- function getPublishedContract(address publisher , string contractId ) external view returns (struct IContractPublisher.CustomContractInstance published)
38
+ function getPublishedContract(address, string) external pure returns (struct IContractPublisher.CustomContractInstance published)
39
39
```
40
40
41
- Returns the latest version of a contract published by a publisher.
41
+
42
42
43
43
44
44
45
45
#### Parameters
46
46
47
47
| Name | Type | Description |
48
48
| ---| ---| ---|
49
- | publisher | address | The address of the publisher.
50
- | contractId | string | The identifier for a published contract (that can have multiple verisons).
49
+ | _ 0 | address | undefined
50
+ | _ 1 | string | undefined
51
51
52
52
#### Returns
53
53
54
54
| Name | Type | Description |
55
55
| ---| ---| ---|
56
- | published | IContractPublisher.CustomContractInstance | The desired contract published by the publisher.
56
+ | published | IContractPublisher.CustomContractInstance | undefined
57
57
58
58
### getPublishedContractVersions
59
59
60
60
``` solidity
61
- function getPublishedContractVersions(address publisher , string contractId ) external view returns (struct IContractPublisher.CustomContractInstance[] published)
61
+ function getPublishedContractVersions(address, string) external pure returns (struct IContractPublisher.CustomContractInstance[] published)
62
62
```
63
63
64
- Returns all versions of a published contract.
64
+
65
65
66
66
67
67
68
68
#### Parameters
69
69
70
70
| Name | Type | Description |
71
71
| ---| ---| ---|
72
- | publisher | address | The address of the publisher.
73
- | contractId | string | The identifier for a published contract (that can have multiple verisons).
72
+ | _ 0 | address | undefined
73
+ | _ 1 | string | undefined
74
74
75
75
#### Returns
76
76
77
77
| Name | Type | Description |
78
78
| ---| ---| ---|
79
- | published | IContractPublisher.CustomContractInstance[ ] | The desired contracts published by the publisher.
79
+ | published | IContractPublisher.CustomContractInstance[ ] | undefined
80
80
81
81
### getPublishedUriFromCompilerUri
82
82
83
83
``` solidity
84
- function getPublishedUriFromCompilerUri(string compilerMetadataUri ) external view returns (string[] publishedMetadataUris)
84
+ function getPublishedUriFromCompilerUri(string) external pure returns (string[] publishedMetadataUris)
85
85
```
86
86
87
- Retrieve the published metadata URI from a compiler metadata URI.
87
+
88
88
89
89
90
90
91
91
#### Parameters
92
92
93
93
| Name | Type | Description |
94
94
| ---| ---| ---|
95
- | compilerMetadataUri | string | undefined
95
+ | _ 0 | string | undefined
96
96
97
97
#### Returns
98
98
@@ -103,18 +103,18 @@ Retrieve the published metadata URI from a compiler metadata URI.
103
103
### getPublisherProfileUri
104
104
105
105
``` solidity
106
- function getPublisherProfileUri(address publisher ) external view returns (string uri)
106
+ function getPublisherProfileUri(address) external pure returns (string uri)
107
107
```
108
108
109
- Get the publisher profile uri for a given publisher.
109
+
110
110
111
111
112
112
113
113
#### Parameters
114
114
115
115
| Name | Type | Description |
116
116
| ---| ---| ---|
117
- | publisher | address | undefined
117
+ | _ 0 | address | undefined
118
118
119
119
#### Returns
120
120
@@ -146,19 +146,19 @@ Let's an account publish a contract.
146
146
### setPublisherProfileUri
147
147
148
148
``` solidity
149
- function setPublisherProfileUri(address publisher , string uri ) external nonpayable
149
+ function setPublisherProfileUri(address, string) external nonpayable
150
150
```
151
151
152
- Lets an account set its publisher profile uri
152
+
153
153
154
154
155
155
156
156
#### Parameters
157
157
158
158
| Name | Type | Description |
159
159
| ---| ---| ---|
160
- | publisher | address | undefined
161
- | uri | string | undefined
160
+ | _ 0 | address | undefined
161
+ | _ 1 | string | undefined
162
162
163
163
### unpublishContract
164
164
0 commit comments