@towns-protocol/generated 0.0.414 → 0.0.415
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/deployments.json +1 -0
- package/deployments/alpha/.env +1 -0
- package/deployments/alpha/.env.vite +1 -0
- package/deployments/alpha/base/addresses/simpleAppBeacon.json +3 -0
- package/dev/.contracts-hash +1 -1
- package/dev/abis/ISimpleApp.abi.json +73 -0
- package/dev/abis/ISimpleApp.abi.ts +73 -0
- package/dev/abis/ISimpleAppBase.abi.json +24 -0
- package/dev/abis/ISimpleAppBase.abi.ts +24 -0
- package/dev/typings/ISimpleApp.ts +93 -0
- package/dev/typings/factories/ISimpleApp__factory.ts +73 -0
- package/package.json +3 -3
package/config/deployments.json
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"appRegistry": "0x23a9f5AbBcC82d1E2B5C0781b1F05F2B623E2c69",
|
|
7
7
|
"baseRegistry": "0x0230a9d28bc48a90d6f5e5112b24319ec1b14c52",
|
|
8
8
|
"riverAirdrop": "0x5cb1B2a6d413879a7A4A89f46e0621db04aa6430",
|
|
9
|
+
"simpleAppBeacon": "0x52B1418e49fD2a920B428398b165f3f048A7826A",
|
|
9
10
|
"space": "0x8DdfAD0259803FA140e076C636E726573df77905",
|
|
10
11
|
"spaceFactory": "0xC09Ac0FFeecAaE5100158247512DC177AeacA3e3",
|
|
11
12
|
"spaceOwner": "0x0443258849016da8Af08e2984Bce8C0ef6Cfc9A0",
|
package/deployments/alpha/.env
CHANGED
|
@@ -3,6 +3,7 @@ BASE_CHAIN_ID=84532
|
|
|
3
3
|
BASE_ADDRESSES_APP_REGISTRY=0x23a9f5AbBcC82d1E2B5C0781b1F05F2B623E2c69
|
|
4
4
|
BASE_ADDRESSES_BASE_REGISTRY=0x0230a9d28bc48a90d6f5e5112b24319ec1b14c52
|
|
5
5
|
BASE_ADDRESSES_RIVER_AIRDROP=0x5cb1B2a6d413879a7A4A89f46e0621db04aa6430
|
|
6
|
+
BASE_ADDRESSES_SIMPLE_APP_BEACON=0x52B1418e49fD2a920B428398b165f3f048A7826A
|
|
6
7
|
BASE_ADDRESSES_SPACE=0x8DdfAD0259803FA140e076C636E726573df77905
|
|
7
8
|
BASE_ADDRESSES_SPACE_FACTORY=0xC09Ac0FFeecAaE5100158247512DC177AeacA3e3
|
|
8
9
|
BASE_ADDRESSES_SPACE_OWNER=0x0443258849016da8Af08e2984Bce8C0ef6Cfc9A0
|
|
@@ -3,6 +3,7 @@ VITE_BASE_CHAIN_ID=84532
|
|
|
3
3
|
VITE_BASE_ADDRESSES_APP_REGISTRY=0x23a9f5AbBcC82d1E2B5C0781b1F05F2B623E2c69
|
|
4
4
|
VITE_BASE_ADDRESSES_BASE_REGISTRY=0x0230a9d28bc48a90d6f5e5112b24319ec1b14c52
|
|
5
5
|
VITE_BASE_ADDRESSES_RIVER_AIRDROP=0x5cb1B2a6d413879a7A4A89f46e0621db04aa6430
|
|
6
|
+
VITE_BASE_ADDRESSES_SIMPLE_APP_BEACON=0x52B1418e49fD2a920B428398b165f3f048A7826A
|
|
6
7
|
VITE_BASE_ADDRESSES_SPACE=0x8DdfAD0259803FA140e076C636E726573df77905
|
|
7
8
|
VITE_BASE_ADDRESSES_SPACE_FACTORY=0xC09Ac0FFeecAaE5100158247512DC177AeacA3e3
|
|
8
9
|
VITE_BASE_ADDRESSES_SPACE_OWNER=0x0443258849016da8Af08e2984Bce8C0ef6Cfc9A0
|
package/dev/.contracts-hash
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
12cbb22598bc80d368d780acf2a6684e70c57989:f939332b550842988507b6c0bc2087844acc1043
|
|
@@ -1,4 +1,53 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"type": "function",
|
|
4
|
+
"name": "getAgentId",
|
|
5
|
+
"inputs": [],
|
|
6
|
+
"outputs": [
|
|
7
|
+
{
|
|
8
|
+
"name": "agentId",
|
|
9
|
+
"type": "uint256",
|
|
10
|
+
"internalType": "uint256"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"stateMutability": "view"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"type": "function",
|
|
17
|
+
"name": "promoteAgent",
|
|
18
|
+
"inputs": [
|
|
19
|
+
{
|
|
20
|
+
"name": "agentUri",
|
|
21
|
+
"type": "string",
|
|
22
|
+
"internalType": "string"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "metadata",
|
|
26
|
+
"type": "tuple[]",
|
|
27
|
+
"internalType": "struct IIdentityRegistryBase.MetadataEntry[]",
|
|
28
|
+
"components": [
|
|
29
|
+
{
|
|
30
|
+
"name": "metadataKey",
|
|
31
|
+
"type": "string",
|
|
32
|
+
"internalType": "string"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "metadataValue",
|
|
36
|
+
"type": "bytes",
|
|
37
|
+
"internalType": "bytes"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"outputs": [
|
|
43
|
+
{
|
|
44
|
+
"name": "agentId",
|
|
45
|
+
"type": "uint256",
|
|
46
|
+
"internalType": "uint256"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"stateMutability": "nonpayable"
|
|
50
|
+
},
|
|
2
51
|
{
|
|
3
52
|
"type": "function",
|
|
4
53
|
"name": "updateClient",
|
|
@@ -56,6 +105,25 @@
|
|
|
56
105
|
"outputs": [],
|
|
57
106
|
"stateMutability": "nonpayable"
|
|
58
107
|
},
|
|
108
|
+
{
|
|
109
|
+
"type": "event",
|
|
110
|
+
"name": "AgentPromoted",
|
|
111
|
+
"inputs": [
|
|
112
|
+
{
|
|
113
|
+
"name": "owner",
|
|
114
|
+
"type": "address",
|
|
115
|
+
"indexed": true,
|
|
116
|
+
"internalType": "address"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "agentId",
|
|
120
|
+
"type": "uint256",
|
|
121
|
+
"indexed": true,
|
|
122
|
+
"internalType": "uint256"
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
"anonymous": false
|
|
126
|
+
},
|
|
59
127
|
{
|
|
60
128
|
"type": "event",
|
|
61
129
|
"name": "ClientUpdated",
|
|
@@ -170,6 +238,11 @@
|
|
|
170
238
|
],
|
|
171
239
|
"anonymous": false
|
|
172
240
|
},
|
|
241
|
+
{
|
|
242
|
+
"type": "error",
|
|
243
|
+
"name": "SimpleApp__AgentAlreadyPromoted",
|
|
244
|
+
"inputs": []
|
|
245
|
+
},
|
|
173
246
|
{
|
|
174
247
|
"type": "error",
|
|
175
248
|
"name": "SimpleApp__InvalidAddressInput",
|
|
@@ -1,4 +1,53 @@
|
|
|
1
1
|
export default [
|
|
2
|
+
{
|
|
3
|
+
"type": "function",
|
|
4
|
+
"name": "getAgentId",
|
|
5
|
+
"inputs": [],
|
|
6
|
+
"outputs": [
|
|
7
|
+
{
|
|
8
|
+
"name": "agentId",
|
|
9
|
+
"type": "uint256",
|
|
10
|
+
"internalType": "uint256"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"stateMutability": "view"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"type": "function",
|
|
17
|
+
"name": "promoteAgent",
|
|
18
|
+
"inputs": [
|
|
19
|
+
{
|
|
20
|
+
"name": "agentUri",
|
|
21
|
+
"type": "string",
|
|
22
|
+
"internalType": "string"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "metadata",
|
|
26
|
+
"type": "tuple[]",
|
|
27
|
+
"internalType": "struct IIdentityRegistryBase.MetadataEntry[]",
|
|
28
|
+
"components": [
|
|
29
|
+
{
|
|
30
|
+
"name": "metadataKey",
|
|
31
|
+
"type": "string",
|
|
32
|
+
"internalType": "string"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "metadataValue",
|
|
36
|
+
"type": "bytes",
|
|
37
|
+
"internalType": "bytes"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"outputs": [
|
|
43
|
+
{
|
|
44
|
+
"name": "agentId",
|
|
45
|
+
"type": "uint256",
|
|
46
|
+
"internalType": "uint256"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"stateMutability": "nonpayable"
|
|
50
|
+
},
|
|
2
51
|
{
|
|
3
52
|
"type": "function",
|
|
4
53
|
"name": "updateClient",
|
|
@@ -56,6 +105,25 @@ export default [
|
|
|
56
105
|
"outputs": [],
|
|
57
106
|
"stateMutability": "nonpayable"
|
|
58
107
|
},
|
|
108
|
+
{
|
|
109
|
+
"type": "event",
|
|
110
|
+
"name": "AgentPromoted",
|
|
111
|
+
"inputs": [
|
|
112
|
+
{
|
|
113
|
+
"name": "owner",
|
|
114
|
+
"type": "address",
|
|
115
|
+
"indexed": true,
|
|
116
|
+
"internalType": "address"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "agentId",
|
|
120
|
+
"type": "uint256",
|
|
121
|
+
"indexed": true,
|
|
122
|
+
"internalType": "uint256"
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
"anonymous": false
|
|
126
|
+
},
|
|
59
127
|
{
|
|
60
128
|
"type": "event",
|
|
61
129
|
"name": "ClientUpdated",
|
|
@@ -170,6 +238,11 @@ export default [
|
|
|
170
238
|
],
|
|
171
239
|
"anonymous": false
|
|
172
240
|
},
|
|
241
|
+
{
|
|
242
|
+
"type": "error",
|
|
243
|
+
"name": "SimpleApp__AgentAlreadyPromoted",
|
|
244
|
+
"inputs": []
|
|
245
|
+
},
|
|
173
246
|
{
|
|
174
247
|
"type": "error",
|
|
175
248
|
"name": "SimpleApp__InvalidAddressInput",
|
|
@@ -1,4 +1,23 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"type": "event",
|
|
4
|
+
"name": "AgentPromoted",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"name": "owner",
|
|
8
|
+
"type": "address",
|
|
9
|
+
"indexed": true,
|
|
10
|
+
"internalType": "address"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "agentId",
|
|
14
|
+
"type": "uint256",
|
|
15
|
+
"indexed": true,
|
|
16
|
+
"internalType": "uint256"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"anonymous": false
|
|
20
|
+
},
|
|
2
21
|
{
|
|
3
22
|
"type": "event",
|
|
4
23
|
"name": "ClientUpdated",
|
|
@@ -113,6 +132,11 @@
|
|
|
113
132
|
],
|
|
114
133
|
"anonymous": false
|
|
115
134
|
},
|
|
135
|
+
{
|
|
136
|
+
"type": "error",
|
|
137
|
+
"name": "SimpleApp__AgentAlreadyPromoted",
|
|
138
|
+
"inputs": []
|
|
139
|
+
},
|
|
116
140
|
{
|
|
117
141
|
"type": "error",
|
|
118
142
|
"name": "SimpleApp__InvalidAddressInput",
|
|
@@ -1,4 +1,23 @@
|
|
|
1
1
|
export default [
|
|
2
|
+
{
|
|
3
|
+
"type": "event",
|
|
4
|
+
"name": "AgentPromoted",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"name": "owner",
|
|
8
|
+
"type": "address",
|
|
9
|
+
"indexed": true,
|
|
10
|
+
"internalType": "address"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "agentId",
|
|
14
|
+
"type": "uint256",
|
|
15
|
+
"indexed": true,
|
|
16
|
+
"internalType": "uint256"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"anonymous": false
|
|
20
|
+
},
|
|
2
21
|
{
|
|
3
22
|
"type": "event",
|
|
4
23
|
"name": "ClientUpdated",
|
|
@@ -113,6 +132,11 @@ export default [
|
|
|
113
132
|
],
|
|
114
133
|
"anonymous": false
|
|
115
134
|
},
|
|
135
|
+
{
|
|
136
|
+
"type": "error",
|
|
137
|
+
"name": "SimpleApp__AgentAlreadyPromoted",
|
|
138
|
+
"inputs": []
|
|
139
|
+
},
|
|
116
140
|
{
|
|
117
141
|
"type": "error",
|
|
118
142
|
"name": "SimpleApp__InvalidAddressInput",
|
|
@@ -26,8 +26,22 @@ import type {
|
|
|
26
26
|
OnEvent,
|
|
27
27
|
} from "./common";
|
|
28
28
|
|
|
29
|
+
export declare namespace IIdentityRegistryBase {
|
|
30
|
+
export type MetadataEntryStruct = {
|
|
31
|
+
metadataKey: string;
|
|
32
|
+
metadataValue: BytesLike;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export type MetadataEntryStructOutput = [string, string] & {
|
|
36
|
+
metadataKey: string;
|
|
37
|
+
metadataValue: string;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
29
41
|
export interface ISimpleAppInterface extends utils.Interface {
|
|
30
42
|
functions: {
|
|
43
|
+
"getAgentId()": FunctionFragment;
|
|
44
|
+
"promoteAgent(string,(string,bytes)[])": FunctionFragment;
|
|
31
45
|
"updateClient(address)": FunctionFragment;
|
|
32
46
|
"updatePermissions(bytes32[])": FunctionFragment;
|
|
33
47
|
"updatePricing(uint256,uint48)": FunctionFragment;
|
|
@@ -36,12 +50,22 @@ export interface ISimpleAppInterface extends utils.Interface {
|
|
|
36
50
|
|
|
37
51
|
getFunction(
|
|
38
52
|
nameOrSignatureOrTopic:
|
|
53
|
+
| "getAgentId"
|
|
54
|
+
| "promoteAgent"
|
|
39
55
|
| "updateClient"
|
|
40
56
|
| "updatePermissions"
|
|
41
57
|
| "updatePricing"
|
|
42
58
|
| "withdrawETH"
|
|
43
59
|
): FunctionFragment;
|
|
44
60
|
|
|
61
|
+
encodeFunctionData(
|
|
62
|
+
functionFragment: "getAgentId",
|
|
63
|
+
values?: undefined
|
|
64
|
+
): string;
|
|
65
|
+
encodeFunctionData(
|
|
66
|
+
functionFragment: "promoteAgent",
|
|
67
|
+
values: [string, IIdentityRegistryBase.MetadataEntryStruct[]]
|
|
68
|
+
): string;
|
|
45
69
|
encodeFunctionData(
|
|
46
70
|
functionFragment: "updateClient",
|
|
47
71
|
values: [string]
|
|
@@ -56,6 +80,11 @@ export interface ISimpleAppInterface extends utils.Interface {
|
|
|
56
80
|
): string;
|
|
57
81
|
encodeFunctionData(functionFragment: "withdrawETH", values: [string]): string;
|
|
58
82
|
|
|
83
|
+
decodeFunctionResult(functionFragment: "getAgentId", data: BytesLike): Result;
|
|
84
|
+
decodeFunctionResult(
|
|
85
|
+
functionFragment: "promoteAgent",
|
|
86
|
+
data: BytesLike
|
|
87
|
+
): Result;
|
|
59
88
|
decodeFunctionResult(
|
|
60
89
|
functionFragment: "updateClient",
|
|
61
90
|
data: BytesLike
|
|
@@ -74,6 +103,7 @@ export interface ISimpleAppInterface extends utils.Interface {
|
|
|
74
103
|
): Result;
|
|
75
104
|
|
|
76
105
|
events: {
|
|
106
|
+
"AgentPromoted(address,uint256)": EventFragment;
|
|
77
107
|
"ClientUpdated(address,address)": EventFragment;
|
|
78
108
|
"PermissionsUpdated(bytes32[])": EventFragment;
|
|
79
109
|
"PricingUpdated(uint256,uint48)": EventFragment;
|
|
@@ -82,6 +112,7 @@ export interface ISimpleAppInterface extends utils.Interface {
|
|
|
82
112
|
"Withdrawal(address,uint256)": EventFragment;
|
|
83
113
|
};
|
|
84
114
|
|
|
115
|
+
getEvent(nameOrSignatureOrTopic: "AgentPromoted"): EventFragment;
|
|
85
116
|
getEvent(nameOrSignatureOrTopic: "ClientUpdated"): EventFragment;
|
|
86
117
|
getEvent(nameOrSignatureOrTopic: "PermissionsUpdated"): EventFragment;
|
|
87
118
|
getEvent(nameOrSignatureOrTopic: "PricingUpdated"): EventFragment;
|
|
@@ -90,6 +121,17 @@ export interface ISimpleAppInterface extends utils.Interface {
|
|
|
90
121
|
getEvent(nameOrSignatureOrTopic: "Withdrawal"): EventFragment;
|
|
91
122
|
}
|
|
92
123
|
|
|
124
|
+
export interface AgentPromotedEventObject {
|
|
125
|
+
owner: string;
|
|
126
|
+
agentId: BigNumber;
|
|
127
|
+
}
|
|
128
|
+
export type AgentPromotedEvent = TypedEvent<
|
|
129
|
+
[string, BigNumber],
|
|
130
|
+
AgentPromotedEventObject
|
|
131
|
+
>;
|
|
132
|
+
|
|
133
|
+
export type AgentPromotedEventFilter = TypedEventFilter<AgentPromotedEvent>;
|
|
134
|
+
|
|
93
135
|
export interface ClientUpdatedEventObject {
|
|
94
136
|
oldClient: string;
|
|
95
137
|
newClient: string;
|
|
@@ -185,6 +227,16 @@ export interface ISimpleApp extends BaseContract {
|
|
|
185
227
|
removeListener: OnEvent<this>;
|
|
186
228
|
|
|
187
229
|
functions: {
|
|
230
|
+
getAgentId(
|
|
231
|
+
overrides?: CallOverrides
|
|
232
|
+
): Promise<[BigNumber] & { agentId: BigNumber }>;
|
|
233
|
+
|
|
234
|
+
promoteAgent(
|
|
235
|
+
agentUri: string,
|
|
236
|
+
metadata: IIdentityRegistryBase.MetadataEntryStruct[],
|
|
237
|
+
overrides?: Overrides & { from?: string }
|
|
238
|
+
): Promise<ContractTransaction>;
|
|
239
|
+
|
|
188
240
|
updateClient(
|
|
189
241
|
newClient: string,
|
|
190
242
|
overrides?: Overrides & { from?: string }
|
|
@@ -207,6 +259,14 @@ export interface ISimpleApp extends BaseContract {
|
|
|
207
259
|
): Promise<ContractTransaction>;
|
|
208
260
|
};
|
|
209
261
|
|
|
262
|
+
getAgentId(overrides?: CallOverrides): Promise<BigNumber>;
|
|
263
|
+
|
|
264
|
+
promoteAgent(
|
|
265
|
+
agentUri: string,
|
|
266
|
+
metadata: IIdentityRegistryBase.MetadataEntryStruct[],
|
|
267
|
+
overrides?: Overrides & { from?: string }
|
|
268
|
+
): Promise<ContractTransaction>;
|
|
269
|
+
|
|
210
270
|
updateClient(
|
|
211
271
|
newClient: string,
|
|
212
272
|
overrides?: Overrides & { from?: string }
|
|
@@ -229,6 +289,14 @@ export interface ISimpleApp extends BaseContract {
|
|
|
229
289
|
): Promise<ContractTransaction>;
|
|
230
290
|
|
|
231
291
|
callStatic: {
|
|
292
|
+
getAgentId(overrides?: CallOverrides): Promise<BigNumber>;
|
|
293
|
+
|
|
294
|
+
promoteAgent(
|
|
295
|
+
agentUri: string,
|
|
296
|
+
metadata: IIdentityRegistryBase.MetadataEntryStruct[],
|
|
297
|
+
overrides?: CallOverrides
|
|
298
|
+
): Promise<BigNumber>;
|
|
299
|
+
|
|
232
300
|
updateClient(newClient: string, overrides?: CallOverrides): Promise<void>;
|
|
233
301
|
|
|
234
302
|
updatePermissions(
|
|
@@ -246,6 +314,15 @@ export interface ISimpleApp extends BaseContract {
|
|
|
246
314
|
};
|
|
247
315
|
|
|
248
316
|
filters: {
|
|
317
|
+
"AgentPromoted(address,uint256)"(
|
|
318
|
+
owner?: string | null,
|
|
319
|
+
agentId?: BigNumberish | null
|
|
320
|
+
): AgentPromotedEventFilter;
|
|
321
|
+
AgentPromoted(
|
|
322
|
+
owner?: string | null,
|
|
323
|
+
agentId?: BigNumberish | null
|
|
324
|
+
): AgentPromotedEventFilter;
|
|
325
|
+
|
|
249
326
|
"ClientUpdated(address,address)"(
|
|
250
327
|
oldClient?: string | null,
|
|
251
328
|
newClient?: string | null
|
|
@@ -297,6 +374,14 @@ export interface ISimpleApp extends BaseContract {
|
|
|
297
374
|
};
|
|
298
375
|
|
|
299
376
|
estimateGas: {
|
|
377
|
+
getAgentId(overrides?: CallOverrides): Promise<BigNumber>;
|
|
378
|
+
|
|
379
|
+
promoteAgent(
|
|
380
|
+
agentUri: string,
|
|
381
|
+
metadata: IIdentityRegistryBase.MetadataEntryStruct[],
|
|
382
|
+
overrides?: Overrides & { from?: string }
|
|
383
|
+
): Promise<BigNumber>;
|
|
384
|
+
|
|
300
385
|
updateClient(
|
|
301
386
|
newClient: string,
|
|
302
387
|
overrides?: Overrides & { from?: string }
|
|
@@ -320,6 +405,14 @@ export interface ISimpleApp extends BaseContract {
|
|
|
320
405
|
};
|
|
321
406
|
|
|
322
407
|
populateTransaction: {
|
|
408
|
+
getAgentId(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
409
|
+
|
|
410
|
+
promoteAgent(
|
|
411
|
+
agentUri: string,
|
|
412
|
+
metadata: IIdentityRegistryBase.MetadataEntryStruct[],
|
|
413
|
+
overrides?: Overrides & { from?: string }
|
|
414
|
+
): Promise<PopulatedTransaction>;
|
|
415
|
+
|
|
323
416
|
updateClient(
|
|
324
417
|
newClient: string,
|
|
325
418
|
overrides?: Overrides & { from?: string }
|
|
@@ -7,6 +7,55 @@ import type { Provider } from "@ethersproject/providers";
|
|
|
7
7
|
import type { ISimpleApp, ISimpleAppInterface } from "../ISimpleApp";
|
|
8
8
|
|
|
9
9
|
const _abi = [
|
|
10
|
+
{
|
|
11
|
+
type: "function",
|
|
12
|
+
name: "getAgentId",
|
|
13
|
+
inputs: [],
|
|
14
|
+
outputs: [
|
|
15
|
+
{
|
|
16
|
+
name: "agentId",
|
|
17
|
+
type: "uint256",
|
|
18
|
+
internalType: "uint256",
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
stateMutability: "view",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
type: "function",
|
|
25
|
+
name: "promoteAgent",
|
|
26
|
+
inputs: [
|
|
27
|
+
{
|
|
28
|
+
name: "agentUri",
|
|
29
|
+
type: "string",
|
|
30
|
+
internalType: "string",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: "metadata",
|
|
34
|
+
type: "tuple[]",
|
|
35
|
+
internalType: "struct IIdentityRegistryBase.MetadataEntry[]",
|
|
36
|
+
components: [
|
|
37
|
+
{
|
|
38
|
+
name: "metadataKey",
|
|
39
|
+
type: "string",
|
|
40
|
+
internalType: "string",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: "metadataValue",
|
|
44
|
+
type: "bytes",
|
|
45
|
+
internalType: "bytes",
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
outputs: [
|
|
51
|
+
{
|
|
52
|
+
name: "agentId",
|
|
53
|
+
type: "uint256",
|
|
54
|
+
internalType: "uint256",
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
stateMutability: "nonpayable",
|
|
58
|
+
},
|
|
10
59
|
{
|
|
11
60
|
type: "function",
|
|
12
61
|
name: "updateClient",
|
|
@@ -64,6 +113,25 @@ const _abi = [
|
|
|
64
113
|
outputs: [],
|
|
65
114
|
stateMutability: "nonpayable",
|
|
66
115
|
},
|
|
116
|
+
{
|
|
117
|
+
type: "event",
|
|
118
|
+
name: "AgentPromoted",
|
|
119
|
+
inputs: [
|
|
120
|
+
{
|
|
121
|
+
name: "owner",
|
|
122
|
+
type: "address",
|
|
123
|
+
indexed: true,
|
|
124
|
+
internalType: "address",
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
name: "agentId",
|
|
128
|
+
type: "uint256",
|
|
129
|
+
indexed: true,
|
|
130
|
+
internalType: "uint256",
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
anonymous: false,
|
|
134
|
+
},
|
|
67
135
|
{
|
|
68
136
|
type: "event",
|
|
69
137
|
name: "ClientUpdated",
|
|
@@ -178,6 +246,11 @@ const _abi = [
|
|
|
178
246
|
],
|
|
179
247
|
anonymous: false,
|
|
180
248
|
},
|
|
249
|
+
{
|
|
250
|
+
type: "error",
|
|
251
|
+
name: "SimpleApp__AgentAlreadyPromoted",
|
|
252
|
+
inputs: [],
|
|
253
|
+
},
|
|
181
254
|
{
|
|
182
255
|
type: "error",
|
|
183
256
|
name: "SimpleApp__InvalidAddressInput",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@towns-protocol/generated",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.415",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "node ./scripts/prepare.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"ethers": "^5.8.0"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@towns-protocol/contracts": "^0.0.
|
|
16
|
+
"@towns-protocol/contracts": "^0.0.415",
|
|
17
17
|
"@typechain/ethers-v5": "^11.1.2",
|
|
18
18
|
"typechain": "^8.3.2"
|
|
19
19
|
},
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "27f0f8758cd1a18fad7a2774490389e48637942b"
|
|
38
38
|
}
|