@vorionsys/basis 1.0.1
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/.env.example +22 -0
- package/AMOY-MIGRATION.md +188 -0
- package/DEPLOY-AMOY.md +368 -0
- package/DEPLOY-NOW.md +216 -0
- package/DEPLOYMENT.md +239 -0
- package/GET-WALLET.md +286 -0
- package/QUICK-WALLET-SETUP.md +268 -0
- package/README.md +195 -0
- package/artifacts/@openzeppelin/contracts/access/AccessControl.sol/AccessControl.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/access/AccessControl.sol/AccessControl.json +236 -0
- package/artifacts/@openzeppelin/contracts/access/IAccessControl.sol/IAccessControl.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/access/IAccessControl.sol/IAccessControl.json +204 -0
- package/artifacts/@openzeppelin/contracts/interfaces/IERC4906.sol/IERC4906.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/interfaces/IERC4906.sol/IERC4906.json +328 -0
- package/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors.json +113 -0
- package/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors.json +97 -0
- package/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors.json +114 -0
- package/artifacts/@openzeppelin/contracts/token/ERC721/ERC721.sol/ERC721.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/token/ERC721/ERC721.sol/ERC721.json +444 -0
- package/artifacts/@openzeppelin/contracts/token/ERC721/IERC721.sol/IERC721.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/token/ERC721/IERC721.sol/IERC721.json +296 -0
- package/artifacts/@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol/IERC721Receiver.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol/IERC721Receiver.json +45 -0
- package/artifacts/@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol/ERC721Enumerable.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol/ERC721Enumerable.json +521 -0
- package/artifacts/@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol/ERC721URIStorage.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol/ERC721URIStorage.json +476 -0
- package/artifacts/@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol/IERC721Enumerable.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol/IERC721Enumerable.json +352 -0
- package/artifacts/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol/IERC721Metadata.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol/IERC721Metadata.json +341 -0
- package/artifacts/@openzeppelin/contracts/token/ERC721/utils/ERC721Utils.sol/ERC721Utils.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/token/ERC721/utils/ERC721Utils.sol/ERC721Utils.json +10 -0
- package/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.json +10 -0
- package/artifacts/@openzeppelin/contracts/utils/Panic.sol/Panic.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/utils/Panic.sol/Panic.json +10 -0
- package/artifacts/@openzeppelin/contracts/utils/Strings.sol/Strings.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/utils/Strings.sol/Strings.json +37 -0
- package/artifacts/@openzeppelin/contracts/utils/introspection/ERC165.sol/ERC165.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/utils/introspection/ERC165.sol/ERC165.json +30 -0
- package/artifacts/@openzeppelin/contracts/utils/introspection/IERC165.sol/IERC165.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/utils/introspection/IERC165.sol/IERC165.json +30 -0
- package/artifacts/@openzeppelin/contracts/utils/math/Math.sol/Math.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/utils/math/Math.sol/Math.json +10 -0
- package/artifacts/@openzeppelin/contracts/utils/math/SafeCast.sol/SafeCast.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/utils/math/SafeCast.sol/SafeCast.json +65 -0
- package/artifacts/@openzeppelin/contracts/utils/math/SignedMath.sol/SignedMath.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/utils/math/SignedMath.sol/SignedMath.json +10 -0
- package/artifacts/build-info/357d1bba4062d461f497f221490811a3.json +1 -0
- package/artifacts/contracts/AgentCard.sol/AgentCard.dbg.json +4 -0
- package/artifacts/contracts/AgentCard.sol/AgentCard.json +1430 -0
- package/build_errors.txt +0 -0
- package/build_output.txt +0 -0
- package/cache/solidity-files-cache.json +885 -0
- package/contracts/AgentCard.sol +478 -0
- package/contracts/deploy/01-deploy-agentcard.ts +66 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -0
- package/dist/kya/accountability.d.ts.map +1 -0
- package/dist/kya/accountability.js +100 -0
- package/dist/kya/authorization.d.ts.map +1 -0
- package/dist/kya/authorization.js +258 -0
- package/dist/kya/behavior.d.ts.map +1 -0
- package/dist/kya/behavior.js +142 -0
- package/dist/kya/identity.d.ts.map +1 -0
- package/dist/kya/identity.js +187 -0
- package/dist/kya/index.d.ts.map +1 -0
- package/dist/kya/index.js +99 -0
- package/dist/kya/types.d.ts.map +1 -0
- package/dist/kya/types.js +5 -0
- package/dist/trust-1000-agents.test.d.ts.map +1 -0
- package/dist/trust-1000-agents.test.js +608 -0
- package/dist/trust-capabilities.d.ts.map +1 -0
- package/dist/trust-capabilities.js +478 -0
- package/dist/trust-factors.d.ts.map +1 -0
- package/dist/trust-factors.js +588 -0
- package/dist/trust-factors.test.d.ts.map +1 -0
- package/dist/trust-factors.test.js +179 -0
- package/dist/validation-gate.d.ts.map +1 -0
- package/dist/validation-gate.js +468 -0
- package/dist/validation-gate.test.d.ts.map +1 -0
- package/dist/validation-gate.test.js +419 -0
- package/hardhat.config.ts +55 -0
- package/package.json +57 -0
- package/scripts/certify-agent.ts +91 -0
- package/scripts/deploy-agentcard.ts +63 -0
- package/scripts/mint-agentcard.ts +87 -0
- package/specs/adversarial-sandbox-test-suite.md +1055 -0
- package/specs/kya-framework.md +910 -0
- package/specs/trust-factors-v2.md +437 -0
- package/src/index.ts +14 -0
- package/src/kya/accountability.ts +132 -0
- package/src/kya/authorization.ts +325 -0
- package/src/kya/behavior.ts +169 -0
- package/src/kya/identity.ts +224 -0
- package/src/kya/index.ts +125 -0
- package/src/kya/types.ts +242 -0
- package/src/trust-1000-agents.test.ts +745 -0
- package/src/trust-capabilities.ts +517 -0
- package/src/trust-factors.test.ts +241 -0
- package/src/trust-factors.ts +666 -0
- package/src/validation-gate.test.ts +531 -0
- package/src/validation-gate.ts +665 -0
- package/test-kya-simple.ts +258 -0
- package/test-kya.ts +245 -0
- package/tsconfig.json +14 -0
- package/typechain-types/@openzeppelin/contracts/access/AccessControl.ts +324 -0
- package/typechain-types/@openzeppelin/contracts/access/IAccessControl.ts +292 -0
- package/typechain-types/@openzeppelin/contracts/access/index.ts +5 -0
- package/typechain-types/@openzeppelin/contracts/index.ts +11 -0
- package/typechain-types/@openzeppelin/contracts/interfaces/IERC4906.ts +462 -0
- package/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors.ts +69 -0
- package/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors.ts +69 -0
- package/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors.ts +69 -0
- package/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.ts +6 -0
- package/typechain-types/@openzeppelin/contracts/interfaces/index.ts +6 -0
- package/typechain-types/@openzeppelin/contracts/token/ERC721/ERC721.ts +420 -0
- package/typechain-types/@openzeppelin/contracts/token/ERC721/IERC721.ts +393 -0
- package/typechain-types/@openzeppelin/contracts/token/ERC721/IERC721Receiver.ts +110 -0
- package/typechain-types/@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.ts +470 -0
- package/typechain-types/@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.ts +489 -0
- package/typechain-types/@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.ts +443 -0
- package/typechain-types/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.ts +420 -0
- package/typechain-types/@openzeppelin/contracts/token/ERC721/extensions/index.ts +7 -0
- package/typechain-types/@openzeppelin/contracts/token/ERC721/index.ts +8 -0
- package/typechain-types/@openzeppelin/contracts/token/index.ts +5 -0
- package/typechain-types/@openzeppelin/contracts/utils/Strings.ts +69 -0
- package/typechain-types/@openzeppelin/contracts/utils/index.ts +8 -0
- package/typechain-types/@openzeppelin/contracts/utils/introspection/ERC165.ts +94 -0
- package/typechain-types/@openzeppelin/contracts/utils/introspection/IERC165.ts +94 -0
- package/typechain-types/@openzeppelin/contracts/utils/introspection/index.ts +5 -0
- package/typechain-types/@openzeppelin/contracts/utils/math/SafeCast.ts +69 -0
- package/typechain-types/@openzeppelin/contracts/utils/math/index.ts +4 -0
- package/typechain-types/@openzeppelin/index.ts +5 -0
- package/typechain-types/common.ts +131 -0
- package/typechain-types/contracts/AgentCard.ts +1415 -0
- package/typechain-types/contracts/index.ts +4 -0
- package/typechain-types/factories/@openzeppelin/contracts/access/AccessControl__factory.ts +250 -0
- package/typechain-types/factories/@openzeppelin/contracts/access/IAccessControl__factory.ts +218 -0
- package/typechain-types/factories/@openzeppelin/contracts/access/index.ts +5 -0
- package/typechain-types/factories/@openzeppelin/contracts/index.ts +7 -0
- package/typechain-types/factories/@openzeppelin/contracts/interfaces/IERC4906__factory.ts +339 -0
- package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors__factory.ts +127 -0
- package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors__factory.ts +111 -0
- package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors__factory.ts +128 -0
- package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.ts +6 -0
- package/typechain-types/factories/@openzeppelin/contracts/interfaces/index.ts +5 -0
- package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/ERC721__factory.ts +455 -0
- package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/IERC721Receiver__factory.ts +59 -0
- package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/IERC721__factory.ts +307 -0
- package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable__factory.ts +535 -0
- package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage__factory.ts +490 -0
- package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable__factory.ts +366 -0
- package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata__factory.ts +355 -0
- package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/extensions/index.ts +7 -0
- package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/index.ts +7 -0
- package/typechain-types/factories/@openzeppelin/contracts/token/index.ts +4 -0
- package/typechain-types/factories/@openzeppelin/contracts/utils/Strings__factory.ts +90 -0
- package/typechain-types/factories/@openzeppelin/contracts/utils/index.ts +6 -0
- package/typechain-types/factories/@openzeppelin/contracts/utils/introspection/ERC165__factory.ts +41 -0
- package/typechain-types/factories/@openzeppelin/contracts/utils/introspection/IERC165__factory.ts +41 -0
- package/typechain-types/factories/@openzeppelin/contracts/utils/introspection/index.ts +5 -0
- package/typechain-types/factories/@openzeppelin/contracts/utils/math/SafeCast__factory.ts +118 -0
- package/typechain-types/factories/@openzeppelin/contracts/utils/math/index.ts +4 -0
- package/typechain-types/factories/@openzeppelin/index.ts +4 -0
- package/typechain-types/factories/contracts/AgentCard__factory.ts +1480 -0
- package/typechain-types/factories/contracts/index.ts +4 -0
- package/typechain-types/factories/index.ts +5 -0
- package/typechain-types/index.ts +44 -0
- package/vitest.config.ts +8 -0
|
@@ -0,0 +1,1415 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumberish,
|
|
7
|
+
BytesLike,
|
|
8
|
+
FunctionFragment,
|
|
9
|
+
Result,
|
|
10
|
+
Interface,
|
|
11
|
+
EventFragment,
|
|
12
|
+
AddressLike,
|
|
13
|
+
ContractRunner,
|
|
14
|
+
ContractMethod,
|
|
15
|
+
Listener,
|
|
16
|
+
} from "ethers";
|
|
17
|
+
import type {
|
|
18
|
+
TypedContractEvent,
|
|
19
|
+
TypedDeferredTopicFilter,
|
|
20
|
+
TypedEventLog,
|
|
21
|
+
TypedLogDescription,
|
|
22
|
+
TypedListener,
|
|
23
|
+
TypedContractMethod,
|
|
24
|
+
} from "../common";
|
|
25
|
+
|
|
26
|
+
export declare namespace AgentCard {
|
|
27
|
+
export type AgentCardDataStruct = {
|
|
28
|
+
did: string;
|
|
29
|
+
name: string;
|
|
30
|
+
description: string;
|
|
31
|
+
trustScore: BigNumberish;
|
|
32
|
+
tier: BigNumberish;
|
|
33
|
+
certified: boolean;
|
|
34
|
+
certifier: AddressLike;
|
|
35
|
+
certificationDate: BigNumberish;
|
|
36
|
+
certificationExpiry: BigNumberish;
|
|
37
|
+
metadataURI: string;
|
|
38
|
+
revoked: boolean;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export type AgentCardDataStructOutput = [
|
|
42
|
+
did: string,
|
|
43
|
+
name: string,
|
|
44
|
+
description: string,
|
|
45
|
+
trustScore: bigint,
|
|
46
|
+
tier: bigint,
|
|
47
|
+
certified: boolean,
|
|
48
|
+
certifier: string,
|
|
49
|
+
certificationDate: bigint,
|
|
50
|
+
certificationExpiry: bigint,
|
|
51
|
+
metadataURI: string,
|
|
52
|
+
revoked: boolean
|
|
53
|
+
] & {
|
|
54
|
+
did: string;
|
|
55
|
+
name: string;
|
|
56
|
+
description: string;
|
|
57
|
+
trustScore: bigint;
|
|
58
|
+
tier: bigint;
|
|
59
|
+
certified: boolean;
|
|
60
|
+
certifier: string;
|
|
61
|
+
certificationDate: bigint;
|
|
62
|
+
certificationExpiry: bigint;
|
|
63
|
+
metadataURI: string;
|
|
64
|
+
revoked: boolean;
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface AgentCardInterface extends Interface {
|
|
69
|
+
getFunction(
|
|
70
|
+
nameOrSignature:
|
|
71
|
+
| "CERTIFIER_ROLE"
|
|
72
|
+
| "DEFAULT_ADMIN_ROLE"
|
|
73
|
+
| "MINTER_ROLE"
|
|
74
|
+
| "addCapabilities"
|
|
75
|
+
| "addRestrictions"
|
|
76
|
+
| "approve"
|
|
77
|
+
| "balanceOf"
|
|
78
|
+
| "cards"
|
|
79
|
+
| "certify"
|
|
80
|
+
| "didToTokenId"
|
|
81
|
+
| "getApproved"
|
|
82
|
+
| "getCapabilities"
|
|
83
|
+
| "getCard"
|
|
84
|
+
| "getCardByDID"
|
|
85
|
+
| "getCardsByOwner"
|
|
86
|
+
| "getCertifiedAgents"
|
|
87
|
+
| "getRestrictions"
|
|
88
|
+
| "getRoleAdmin"
|
|
89
|
+
| "grantRole"
|
|
90
|
+
| "hasRole"
|
|
91
|
+
| "isApprovedForAll"
|
|
92
|
+
| "isCertified"
|
|
93
|
+
| "mint"
|
|
94
|
+
| "name"
|
|
95
|
+
| "ownerOf"
|
|
96
|
+
| "renounceRole"
|
|
97
|
+
| "revokeCertification"
|
|
98
|
+
| "revokeRole"
|
|
99
|
+
| "safeTransferFrom(address,address,uint256)"
|
|
100
|
+
| "safeTransferFrom(address,address,uint256,bytes)"
|
|
101
|
+
| "setApprovalForAll"
|
|
102
|
+
| "supportsInterface"
|
|
103
|
+
| "symbol"
|
|
104
|
+
| "tokenByIndex"
|
|
105
|
+
| "tokenOfOwnerByIndex"
|
|
106
|
+
| "tokenURI"
|
|
107
|
+
| "totalSupply"
|
|
108
|
+
| "transferFrom"
|
|
109
|
+
| "updateTrustScore"
|
|
110
|
+
): FunctionFragment;
|
|
111
|
+
|
|
112
|
+
getEvent(
|
|
113
|
+
nameOrSignatureOrTopic:
|
|
114
|
+
| "AgentCardMinted"
|
|
115
|
+
| "AgentCertified"
|
|
116
|
+
| "Approval"
|
|
117
|
+
| "ApprovalForAll"
|
|
118
|
+
| "BatchMetadataUpdate"
|
|
119
|
+
| "CapabilitiesUpdated"
|
|
120
|
+
| "CertificationRevoked"
|
|
121
|
+
| "MetadataUpdate"
|
|
122
|
+
| "RoleAdminChanged"
|
|
123
|
+
| "RoleGranted"
|
|
124
|
+
| "RoleRevoked"
|
|
125
|
+
| "Transfer"
|
|
126
|
+
| "TrustScoreUpdated"
|
|
127
|
+
): EventFragment;
|
|
128
|
+
|
|
129
|
+
encodeFunctionData(
|
|
130
|
+
functionFragment: "CERTIFIER_ROLE",
|
|
131
|
+
values?: undefined
|
|
132
|
+
): string;
|
|
133
|
+
encodeFunctionData(
|
|
134
|
+
functionFragment: "DEFAULT_ADMIN_ROLE",
|
|
135
|
+
values?: undefined
|
|
136
|
+
): string;
|
|
137
|
+
encodeFunctionData(
|
|
138
|
+
functionFragment: "MINTER_ROLE",
|
|
139
|
+
values?: undefined
|
|
140
|
+
): string;
|
|
141
|
+
encodeFunctionData(
|
|
142
|
+
functionFragment: "addCapabilities",
|
|
143
|
+
values: [BigNumberish, string[]]
|
|
144
|
+
): string;
|
|
145
|
+
encodeFunctionData(
|
|
146
|
+
functionFragment: "addRestrictions",
|
|
147
|
+
values: [BigNumberish, string[]]
|
|
148
|
+
): string;
|
|
149
|
+
encodeFunctionData(
|
|
150
|
+
functionFragment: "approve",
|
|
151
|
+
values: [AddressLike, BigNumberish]
|
|
152
|
+
): string;
|
|
153
|
+
encodeFunctionData(
|
|
154
|
+
functionFragment: "balanceOf",
|
|
155
|
+
values: [AddressLike]
|
|
156
|
+
): string;
|
|
157
|
+
encodeFunctionData(functionFragment: "cards", values: [BigNumberish]): string;
|
|
158
|
+
encodeFunctionData(
|
|
159
|
+
functionFragment: "certify",
|
|
160
|
+
values: [BigNumberish, BigNumberish, BigNumberish]
|
|
161
|
+
): string;
|
|
162
|
+
encodeFunctionData(
|
|
163
|
+
functionFragment: "didToTokenId",
|
|
164
|
+
values: [string]
|
|
165
|
+
): string;
|
|
166
|
+
encodeFunctionData(
|
|
167
|
+
functionFragment: "getApproved",
|
|
168
|
+
values: [BigNumberish]
|
|
169
|
+
): string;
|
|
170
|
+
encodeFunctionData(
|
|
171
|
+
functionFragment: "getCapabilities",
|
|
172
|
+
values: [BigNumberish]
|
|
173
|
+
): string;
|
|
174
|
+
encodeFunctionData(
|
|
175
|
+
functionFragment: "getCard",
|
|
176
|
+
values: [BigNumberish]
|
|
177
|
+
): string;
|
|
178
|
+
encodeFunctionData(
|
|
179
|
+
functionFragment: "getCardByDID",
|
|
180
|
+
values: [string]
|
|
181
|
+
): string;
|
|
182
|
+
encodeFunctionData(
|
|
183
|
+
functionFragment: "getCardsByOwner",
|
|
184
|
+
values: [AddressLike]
|
|
185
|
+
): string;
|
|
186
|
+
encodeFunctionData(
|
|
187
|
+
functionFragment: "getCertifiedAgents",
|
|
188
|
+
values: [BigNumberish, BigNumberish]
|
|
189
|
+
): string;
|
|
190
|
+
encodeFunctionData(
|
|
191
|
+
functionFragment: "getRestrictions",
|
|
192
|
+
values: [BigNumberish]
|
|
193
|
+
): string;
|
|
194
|
+
encodeFunctionData(
|
|
195
|
+
functionFragment: "getRoleAdmin",
|
|
196
|
+
values: [BytesLike]
|
|
197
|
+
): string;
|
|
198
|
+
encodeFunctionData(
|
|
199
|
+
functionFragment: "grantRole",
|
|
200
|
+
values: [BytesLike, AddressLike]
|
|
201
|
+
): string;
|
|
202
|
+
encodeFunctionData(
|
|
203
|
+
functionFragment: "hasRole",
|
|
204
|
+
values: [BytesLike, AddressLike]
|
|
205
|
+
): string;
|
|
206
|
+
encodeFunctionData(
|
|
207
|
+
functionFragment: "isApprovedForAll",
|
|
208
|
+
values: [AddressLike, AddressLike]
|
|
209
|
+
): string;
|
|
210
|
+
encodeFunctionData(
|
|
211
|
+
functionFragment: "isCertified",
|
|
212
|
+
values: [BigNumberish]
|
|
213
|
+
): string;
|
|
214
|
+
encodeFunctionData(
|
|
215
|
+
functionFragment: "mint",
|
|
216
|
+
values: [AddressLike, string, string, string, string[], string]
|
|
217
|
+
): string;
|
|
218
|
+
encodeFunctionData(functionFragment: "name", values?: undefined): string;
|
|
219
|
+
encodeFunctionData(
|
|
220
|
+
functionFragment: "ownerOf",
|
|
221
|
+
values: [BigNumberish]
|
|
222
|
+
): string;
|
|
223
|
+
encodeFunctionData(
|
|
224
|
+
functionFragment: "renounceRole",
|
|
225
|
+
values: [BytesLike, AddressLike]
|
|
226
|
+
): string;
|
|
227
|
+
encodeFunctionData(
|
|
228
|
+
functionFragment: "revokeCertification",
|
|
229
|
+
values: [BigNumberish, string]
|
|
230
|
+
): string;
|
|
231
|
+
encodeFunctionData(
|
|
232
|
+
functionFragment: "revokeRole",
|
|
233
|
+
values: [BytesLike, AddressLike]
|
|
234
|
+
): string;
|
|
235
|
+
encodeFunctionData(
|
|
236
|
+
functionFragment: "safeTransferFrom(address,address,uint256)",
|
|
237
|
+
values: [AddressLike, AddressLike, BigNumberish]
|
|
238
|
+
): string;
|
|
239
|
+
encodeFunctionData(
|
|
240
|
+
functionFragment: "safeTransferFrom(address,address,uint256,bytes)",
|
|
241
|
+
values: [AddressLike, AddressLike, BigNumberish, BytesLike]
|
|
242
|
+
): string;
|
|
243
|
+
encodeFunctionData(
|
|
244
|
+
functionFragment: "setApprovalForAll",
|
|
245
|
+
values: [AddressLike, boolean]
|
|
246
|
+
): string;
|
|
247
|
+
encodeFunctionData(
|
|
248
|
+
functionFragment: "supportsInterface",
|
|
249
|
+
values: [BytesLike]
|
|
250
|
+
): string;
|
|
251
|
+
encodeFunctionData(functionFragment: "symbol", values?: undefined): string;
|
|
252
|
+
encodeFunctionData(
|
|
253
|
+
functionFragment: "tokenByIndex",
|
|
254
|
+
values: [BigNumberish]
|
|
255
|
+
): string;
|
|
256
|
+
encodeFunctionData(
|
|
257
|
+
functionFragment: "tokenOfOwnerByIndex",
|
|
258
|
+
values: [AddressLike, BigNumberish]
|
|
259
|
+
): string;
|
|
260
|
+
encodeFunctionData(
|
|
261
|
+
functionFragment: "tokenURI",
|
|
262
|
+
values: [BigNumberish]
|
|
263
|
+
): string;
|
|
264
|
+
encodeFunctionData(
|
|
265
|
+
functionFragment: "totalSupply",
|
|
266
|
+
values?: undefined
|
|
267
|
+
): string;
|
|
268
|
+
encodeFunctionData(
|
|
269
|
+
functionFragment: "transferFrom",
|
|
270
|
+
values: [AddressLike, AddressLike, BigNumberish]
|
|
271
|
+
): string;
|
|
272
|
+
encodeFunctionData(
|
|
273
|
+
functionFragment: "updateTrustScore",
|
|
274
|
+
values: [BigNumberish, BigNumberish]
|
|
275
|
+
): string;
|
|
276
|
+
|
|
277
|
+
decodeFunctionResult(
|
|
278
|
+
functionFragment: "CERTIFIER_ROLE",
|
|
279
|
+
data: BytesLike
|
|
280
|
+
): Result;
|
|
281
|
+
decodeFunctionResult(
|
|
282
|
+
functionFragment: "DEFAULT_ADMIN_ROLE",
|
|
283
|
+
data: BytesLike
|
|
284
|
+
): Result;
|
|
285
|
+
decodeFunctionResult(
|
|
286
|
+
functionFragment: "MINTER_ROLE",
|
|
287
|
+
data: BytesLike
|
|
288
|
+
): Result;
|
|
289
|
+
decodeFunctionResult(
|
|
290
|
+
functionFragment: "addCapabilities",
|
|
291
|
+
data: BytesLike
|
|
292
|
+
): Result;
|
|
293
|
+
decodeFunctionResult(
|
|
294
|
+
functionFragment: "addRestrictions",
|
|
295
|
+
data: BytesLike
|
|
296
|
+
): Result;
|
|
297
|
+
decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
|
|
298
|
+
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
|
299
|
+
decodeFunctionResult(functionFragment: "cards", data: BytesLike): Result;
|
|
300
|
+
decodeFunctionResult(functionFragment: "certify", data: BytesLike): Result;
|
|
301
|
+
decodeFunctionResult(
|
|
302
|
+
functionFragment: "didToTokenId",
|
|
303
|
+
data: BytesLike
|
|
304
|
+
): Result;
|
|
305
|
+
decodeFunctionResult(
|
|
306
|
+
functionFragment: "getApproved",
|
|
307
|
+
data: BytesLike
|
|
308
|
+
): Result;
|
|
309
|
+
decodeFunctionResult(
|
|
310
|
+
functionFragment: "getCapabilities",
|
|
311
|
+
data: BytesLike
|
|
312
|
+
): Result;
|
|
313
|
+
decodeFunctionResult(functionFragment: "getCard", data: BytesLike): Result;
|
|
314
|
+
decodeFunctionResult(
|
|
315
|
+
functionFragment: "getCardByDID",
|
|
316
|
+
data: BytesLike
|
|
317
|
+
): Result;
|
|
318
|
+
decodeFunctionResult(
|
|
319
|
+
functionFragment: "getCardsByOwner",
|
|
320
|
+
data: BytesLike
|
|
321
|
+
): Result;
|
|
322
|
+
decodeFunctionResult(
|
|
323
|
+
functionFragment: "getCertifiedAgents",
|
|
324
|
+
data: BytesLike
|
|
325
|
+
): Result;
|
|
326
|
+
decodeFunctionResult(
|
|
327
|
+
functionFragment: "getRestrictions",
|
|
328
|
+
data: BytesLike
|
|
329
|
+
): Result;
|
|
330
|
+
decodeFunctionResult(
|
|
331
|
+
functionFragment: "getRoleAdmin",
|
|
332
|
+
data: BytesLike
|
|
333
|
+
): Result;
|
|
334
|
+
decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result;
|
|
335
|
+
decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result;
|
|
336
|
+
decodeFunctionResult(
|
|
337
|
+
functionFragment: "isApprovedForAll",
|
|
338
|
+
data: BytesLike
|
|
339
|
+
): Result;
|
|
340
|
+
decodeFunctionResult(
|
|
341
|
+
functionFragment: "isCertified",
|
|
342
|
+
data: BytesLike
|
|
343
|
+
): Result;
|
|
344
|
+
decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result;
|
|
345
|
+
decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
|
|
346
|
+
decodeFunctionResult(functionFragment: "ownerOf", data: BytesLike): Result;
|
|
347
|
+
decodeFunctionResult(
|
|
348
|
+
functionFragment: "renounceRole",
|
|
349
|
+
data: BytesLike
|
|
350
|
+
): Result;
|
|
351
|
+
decodeFunctionResult(
|
|
352
|
+
functionFragment: "revokeCertification",
|
|
353
|
+
data: BytesLike
|
|
354
|
+
): Result;
|
|
355
|
+
decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result;
|
|
356
|
+
decodeFunctionResult(
|
|
357
|
+
functionFragment: "safeTransferFrom(address,address,uint256)",
|
|
358
|
+
data: BytesLike
|
|
359
|
+
): Result;
|
|
360
|
+
decodeFunctionResult(
|
|
361
|
+
functionFragment: "safeTransferFrom(address,address,uint256,bytes)",
|
|
362
|
+
data: BytesLike
|
|
363
|
+
): Result;
|
|
364
|
+
decodeFunctionResult(
|
|
365
|
+
functionFragment: "setApprovalForAll",
|
|
366
|
+
data: BytesLike
|
|
367
|
+
): Result;
|
|
368
|
+
decodeFunctionResult(
|
|
369
|
+
functionFragment: "supportsInterface",
|
|
370
|
+
data: BytesLike
|
|
371
|
+
): Result;
|
|
372
|
+
decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result;
|
|
373
|
+
decodeFunctionResult(
|
|
374
|
+
functionFragment: "tokenByIndex",
|
|
375
|
+
data: BytesLike
|
|
376
|
+
): Result;
|
|
377
|
+
decodeFunctionResult(
|
|
378
|
+
functionFragment: "tokenOfOwnerByIndex",
|
|
379
|
+
data: BytesLike
|
|
380
|
+
): Result;
|
|
381
|
+
decodeFunctionResult(functionFragment: "tokenURI", data: BytesLike): Result;
|
|
382
|
+
decodeFunctionResult(
|
|
383
|
+
functionFragment: "totalSupply",
|
|
384
|
+
data: BytesLike
|
|
385
|
+
): Result;
|
|
386
|
+
decodeFunctionResult(
|
|
387
|
+
functionFragment: "transferFrom",
|
|
388
|
+
data: BytesLike
|
|
389
|
+
): Result;
|
|
390
|
+
decodeFunctionResult(
|
|
391
|
+
functionFragment: "updateTrustScore",
|
|
392
|
+
data: BytesLike
|
|
393
|
+
): Result;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
export namespace AgentCardMintedEvent {
|
|
397
|
+
export type InputTuple = [
|
|
398
|
+
tokenId: BigNumberish,
|
|
399
|
+
did: string,
|
|
400
|
+
owner: AddressLike,
|
|
401
|
+
name: string
|
|
402
|
+
];
|
|
403
|
+
export type OutputTuple = [
|
|
404
|
+
tokenId: bigint,
|
|
405
|
+
did: string,
|
|
406
|
+
owner: string,
|
|
407
|
+
name: string
|
|
408
|
+
];
|
|
409
|
+
export interface OutputObject {
|
|
410
|
+
tokenId: bigint;
|
|
411
|
+
did: string;
|
|
412
|
+
owner: string;
|
|
413
|
+
name: string;
|
|
414
|
+
}
|
|
415
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
416
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
417
|
+
export type Log = TypedEventLog<Event>;
|
|
418
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
export namespace AgentCertifiedEvent {
|
|
422
|
+
export type InputTuple = [
|
|
423
|
+
tokenId: BigNumberish,
|
|
424
|
+
did: string,
|
|
425
|
+
certifier: AddressLike,
|
|
426
|
+
trustScore: BigNumberish,
|
|
427
|
+
tier: BigNumberish
|
|
428
|
+
];
|
|
429
|
+
export type OutputTuple = [
|
|
430
|
+
tokenId: bigint,
|
|
431
|
+
did: string,
|
|
432
|
+
certifier: string,
|
|
433
|
+
trustScore: bigint,
|
|
434
|
+
tier: bigint
|
|
435
|
+
];
|
|
436
|
+
export interface OutputObject {
|
|
437
|
+
tokenId: bigint;
|
|
438
|
+
did: string;
|
|
439
|
+
certifier: string;
|
|
440
|
+
trustScore: bigint;
|
|
441
|
+
tier: bigint;
|
|
442
|
+
}
|
|
443
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
444
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
445
|
+
export type Log = TypedEventLog<Event>;
|
|
446
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
export namespace ApprovalEvent {
|
|
450
|
+
export type InputTuple = [
|
|
451
|
+
owner: AddressLike,
|
|
452
|
+
approved: AddressLike,
|
|
453
|
+
tokenId: BigNumberish
|
|
454
|
+
];
|
|
455
|
+
export type OutputTuple = [owner: string, approved: string, tokenId: bigint];
|
|
456
|
+
export interface OutputObject {
|
|
457
|
+
owner: string;
|
|
458
|
+
approved: string;
|
|
459
|
+
tokenId: bigint;
|
|
460
|
+
}
|
|
461
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
462
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
463
|
+
export type Log = TypedEventLog<Event>;
|
|
464
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
export namespace ApprovalForAllEvent {
|
|
468
|
+
export type InputTuple = [
|
|
469
|
+
owner: AddressLike,
|
|
470
|
+
operator: AddressLike,
|
|
471
|
+
approved: boolean
|
|
472
|
+
];
|
|
473
|
+
export type OutputTuple = [
|
|
474
|
+
owner: string,
|
|
475
|
+
operator: string,
|
|
476
|
+
approved: boolean
|
|
477
|
+
];
|
|
478
|
+
export interface OutputObject {
|
|
479
|
+
owner: string;
|
|
480
|
+
operator: string;
|
|
481
|
+
approved: boolean;
|
|
482
|
+
}
|
|
483
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
484
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
485
|
+
export type Log = TypedEventLog<Event>;
|
|
486
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
export namespace BatchMetadataUpdateEvent {
|
|
490
|
+
export type InputTuple = [
|
|
491
|
+
_fromTokenId: BigNumberish,
|
|
492
|
+
_toTokenId: BigNumberish
|
|
493
|
+
];
|
|
494
|
+
export type OutputTuple = [_fromTokenId: bigint, _toTokenId: bigint];
|
|
495
|
+
export interface OutputObject {
|
|
496
|
+
_fromTokenId: bigint;
|
|
497
|
+
_toTokenId: bigint;
|
|
498
|
+
}
|
|
499
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
500
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
501
|
+
export type Log = TypedEventLog<Event>;
|
|
502
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
export namespace CapabilitiesUpdatedEvent {
|
|
506
|
+
export type InputTuple = [
|
|
507
|
+
tokenId: BigNumberish,
|
|
508
|
+
did: string,
|
|
509
|
+
capabilityCount: BigNumberish
|
|
510
|
+
];
|
|
511
|
+
export type OutputTuple = [
|
|
512
|
+
tokenId: bigint,
|
|
513
|
+
did: string,
|
|
514
|
+
capabilityCount: bigint
|
|
515
|
+
];
|
|
516
|
+
export interface OutputObject {
|
|
517
|
+
tokenId: bigint;
|
|
518
|
+
did: string;
|
|
519
|
+
capabilityCount: bigint;
|
|
520
|
+
}
|
|
521
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
522
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
523
|
+
export type Log = TypedEventLog<Event>;
|
|
524
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
export namespace CertificationRevokedEvent {
|
|
528
|
+
export type InputTuple = [
|
|
529
|
+
tokenId: BigNumberish,
|
|
530
|
+
did: string,
|
|
531
|
+
certifier: AddressLike,
|
|
532
|
+
reason: string
|
|
533
|
+
];
|
|
534
|
+
export type OutputTuple = [
|
|
535
|
+
tokenId: bigint,
|
|
536
|
+
did: string,
|
|
537
|
+
certifier: string,
|
|
538
|
+
reason: string
|
|
539
|
+
];
|
|
540
|
+
export interface OutputObject {
|
|
541
|
+
tokenId: bigint;
|
|
542
|
+
did: string;
|
|
543
|
+
certifier: string;
|
|
544
|
+
reason: string;
|
|
545
|
+
}
|
|
546
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
547
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
548
|
+
export type Log = TypedEventLog<Event>;
|
|
549
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
export namespace MetadataUpdateEvent {
|
|
553
|
+
export type InputTuple = [_tokenId: BigNumberish];
|
|
554
|
+
export type OutputTuple = [_tokenId: bigint];
|
|
555
|
+
export interface OutputObject {
|
|
556
|
+
_tokenId: bigint;
|
|
557
|
+
}
|
|
558
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
559
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
560
|
+
export type Log = TypedEventLog<Event>;
|
|
561
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
export namespace RoleAdminChangedEvent {
|
|
565
|
+
export type InputTuple = [
|
|
566
|
+
role: BytesLike,
|
|
567
|
+
previousAdminRole: BytesLike,
|
|
568
|
+
newAdminRole: BytesLike
|
|
569
|
+
];
|
|
570
|
+
export type OutputTuple = [
|
|
571
|
+
role: string,
|
|
572
|
+
previousAdminRole: string,
|
|
573
|
+
newAdminRole: string
|
|
574
|
+
];
|
|
575
|
+
export interface OutputObject {
|
|
576
|
+
role: string;
|
|
577
|
+
previousAdminRole: string;
|
|
578
|
+
newAdminRole: string;
|
|
579
|
+
}
|
|
580
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
581
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
582
|
+
export type Log = TypedEventLog<Event>;
|
|
583
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
export namespace RoleGrantedEvent {
|
|
587
|
+
export type InputTuple = [
|
|
588
|
+
role: BytesLike,
|
|
589
|
+
account: AddressLike,
|
|
590
|
+
sender: AddressLike
|
|
591
|
+
];
|
|
592
|
+
export type OutputTuple = [role: string, account: string, sender: string];
|
|
593
|
+
export interface OutputObject {
|
|
594
|
+
role: string;
|
|
595
|
+
account: string;
|
|
596
|
+
sender: string;
|
|
597
|
+
}
|
|
598
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
599
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
600
|
+
export type Log = TypedEventLog<Event>;
|
|
601
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
export namespace RoleRevokedEvent {
|
|
605
|
+
export type InputTuple = [
|
|
606
|
+
role: BytesLike,
|
|
607
|
+
account: AddressLike,
|
|
608
|
+
sender: AddressLike
|
|
609
|
+
];
|
|
610
|
+
export type OutputTuple = [role: string, account: string, sender: string];
|
|
611
|
+
export interface OutputObject {
|
|
612
|
+
role: string;
|
|
613
|
+
account: string;
|
|
614
|
+
sender: string;
|
|
615
|
+
}
|
|
616
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
617
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
618
|
+
export type Log = TypedEventLog<Event>;
|
|
619
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
export namespace TransferEvent {
|
|
623
|
+
export type InputTuple = [
|
|
624
|
+
from: AddressLike,
|
|
625
|
+
to: AddressLike,
|
|
626
|
+
tokenId: BigNumberish
|
|
627
|
+
];
|
|
628
|
+
export type OutputTuple = [from: string, to: string, tokenId: bigint];
|
|
629
|
+
export interface OutputObject {
|
|
630
|
+
from: string;
|
|
631
|
+
to: string;
|
|
632
|
+
tokenId: bigint;
|
|
633
|
+
}
|
|
634
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
635
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
636
|
+
export type Log = TypedEventLog<Event>;
|
|
637
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
export namespace TrustScoreUpdatedEvent {
|
|
641
|
+
export type InputTuple = [
|
|
642
|
+
tokenId: BigNumberish,
|
|
643
|
+
did: string,
|
|
644
|
+
oldScore: BigNumberish,
|
|
645
|
+
newScore: BigNumberish,
|
|
646
|
+
newTier: BigNumberish
|
|
647
|
+
];
|
|
648
|
+
export type OutputTuple = [
|
|
649
|
+
tokenId: bigint,
|
|
650
|
+
did: string,
|
|
651
|
+
oldScore: bigint,
|
|
652
|
+
newScore: bigint,
|
|
653
|
+
newTier: bigint
|
|
654
|
+
];
|
|
655
|
+
export interface OutputObject {
|
|
656
|
+
tokenId: bigint;
|
|
657
|
+
did: string;
|
|
658
|
+
oldScore: bigint;
|
|
659
|
+
newScore: bigint;
|
|
660
|
+
newTier: bigint;
|
|
661
|
+
}
|
|
662
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
663
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
664
|
+
export type Log = TypedEventLog<Event>;
|
|
665
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
export interface AgentCard extends BaseContract {
|
|
669
|
+
connect(runner?: ContractRunner | null): AgentCard;
|
|
670
|
+
waitForDeployment(): Promise<this>;
|
|
671
|
+
|
|
672
|
+
interface: AgentCardInterface;
|
|
673
|
+
|
|
674
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
675
|
+
event: TCEvent,
|
|
676
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
677
|
+
toBlock?: string | number | undefined
|
|
678
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
679
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
680
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
681
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
682
|
+
toBlock?: string | number | undefined
|
|
683
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
684
|
+
|
|
685
|
+
on<TCEvent extends TypedContractEvent>(
|
|
686
|
+
event: TCEvent,
|
|
687
|
+
listener: TypedListener<TCEvent>
|
|
688
|
+
): Promise<this>;
|
|
689
|
+
on<TCEvent extends TypedContractEvent>(
|
|
690
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
691
|
+
listener: TypedListener<TCEvent>
|
|
692
|
+
): Promise<this>;
|
|
693
|
+
|
|
694
|
+
once<TCEvent extends TypedContractEvent>(
|
|
695
|
+
event: TCEvent,
|
|
696
|
+
listener: TypedListener<TCEvent>
|
|
697
|
+
): Promise<this>;
|
|
698
|
+
once<TCEvent extends TypedContractEvent>(
|
|
699
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
700
|
+
listener: TypedListener<TCEvent>
|
|
701
|
+
): Promise<this>;
|
|
702
|
+
|
|
703
|
+
listeners<TCEvent extends TypedContractEvent>(
|
|
704
|
+
event: TCEvent
|
|
705
|
+
): Promise<Array<TypedListener<TCEvent>>>;
|
|
706
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
707
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(
|
|
708
|
+
event?: TCEvent
|
|
709
|
+
): Promise<this>;
|
|
710
|
+
|
|
711
|
+
CERTIFIER_ROLE: TypedContractMethod<[], [string], "view">;
|
|
712
|
+
|
|
713
|
+
DEFAULT_ADMIN_ROLE: TypedContractMethod<[], [string], "view">;
|
|
714
|
+
|
|
715
|
+
MINTER_ROLE: TypedContractMethod<[], [string], "view">;
|
|
716
|
+
|
|
717
|
+
addCapabilities: TypedContractMethod<
|
|
718
|
+
[tokenId: BigNumberish, capabilities: string[]],
|
|
719
|
+
[void],
|
|
720
|
+
"nonpayable"
|
|
721
|
+
>;
|
|
722
|
+
|
|
723
|
+
addRestrictions: TypedContractMethod<
|
|
724
|
+
[tokenId: BigNumberish, restrictions: string[]],
|
|
725
|
+
[void],
|
|
726
|
+
"nonpayable"
|
|
727
|
+
>;
|
|
728
|
+
|
|
729
|
+
approve: TypedContractMethod<
|
|
730
|
+
[to: AddressLike, tokenId: BigNumberish],
|
|
731
|
+
[void],
|
|
732
|
+
"nonpayable"
|
|
733
|
+
>;
|
|
734
|
+
|
|
735
|
+
balanceOf: TypedContractMethod<[owner: AddressLike], [bigint], "view">;
|
|
736
|
+
|
|
737
|
+
cards: TypedContractMethod<
|
|
738
|
+
[arg0: BigNumberish],
|
|
739
|
+
[
|
|
740
|
+
[
|
|
741
|
+
string,
|
|
742
|
+
string,
|
|
743
|
+
string,
|
|
744
|
+
bigint,
|
|
745
|
+
bigint,
|
|
746
|
+
boolean,
|
|
747
|
+
string,
|
|
748
|
+
bigint,
|
|
749
|
+
bigint,
|
|
750
|
+
string,
|
|
751
|
+
boolean
|
|
752
|
+
] & {
|
|
753
|
+
did: string;
|
|
754
|
+
name: string;
|
|
755
|
+
description: string;
|
|
756
|
+
trustScore: bigint;
|
|
757
|
+
tier: bigint;
|
|
758
|
+
certified: boolean;
|
|
759
|
+
certifier: string;
|
|
760
|
+
certificationDate: bigint;
|
|
761
|
+
certificationExpiry: bigint;
|
|
762
|
+
metadataURI: string;
|
|
763
|
+
revoked: boolean;
|
|
764
|
+
}
|
|
765
|
+
],
|
|
766
|
+
"view"
|
|
767
|
+
>;
|
|
768
|
+
|
|
769
|
+
certify: TypedContractMethod<
|
|
770
|
+
[
|
|
771
|
+
tokenId: BigNumberish,
|
|
772
|
+
trustScore: BigNumberish,
|
|
773
|
+
expiryTimestamp: BigNumberish
|
|
774
|
+
],
|
|
775
|
+
[void],
|
|
776
|
+
"nonpayable"
|
|
777
|
+
>;
|
|
778
|
+
|
|
779
|
+
didToTokenId: TypedContractMethod<[arg0: string], [bigint], "view">;
|
|
780
|
+
|
|
781
|
+
getApproved: TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
|
782
|
+
|
|
783
|
+
getCapabilities: TypedContractMethod<
|
|
784
|
+
[tokenId: BigNumberish],
|
|
785
|
+
[string[]],
|
|
786
|
+
"view"
|
|
787
|
+
>;
|
|
788
|
+
|
|
789
|
+
getCard: TypedContractMethod<
|
|
790
|
+
[tokenId: BigNumberish],
|
|
791
|
+
[AgentCard.AgentCardDataStructOutput],
|
|
792
|
+
"view"
|
|
793
|
+
>;
|
|
794
|
+
|
|
795
|
+
getCardByDID: TypedContractMethod<
|
|
796
|
+
[did: string],
|
|
797
|
+
[AgentCard.AgentCardDataStructOutput],
|
|
798
|
+
"view"
|
|
799
|
+
>;
|
|
800
|
+
|
|
801
|
+
getCardsByOwner: TypedContractMethod<
|
|
802
|
+
[owner: AddressLike],
|
|
803
|
+
[bigint[]],
|
|
804
|
+
"view"
|
|
805
|
+
>;
|
|
806
|
+
|
|
807
|
+
getCertifiedAgents: TypedContractMethod<
|
|
808
|
+
[offset: BigNumberish, limit: BigNumberish],
|
|
809
|
+
[bigint[]],
|
|
810
|
+
"view"
|
|
811
|
+
>;
|
|
812
|
+
|
|
813
|
+
getRestrictions: TypedContractMethod<
|
|
814
|
+
[tokenId: BigNumberish],
|
|
815
|
+
[string[]],
|
|
816
|
+
"view"
|
|
817
|
+
>;
|
|
818
|
+
|
|
819
|
+
getRoleAdmin: TypedContractMethod<[role: BytesLike], [string], "view">;
|
|
820
|
+
|
|
821
|
+
grantRole: TypedContractMethod<
|
|
822
|
+
[role: BytesLike, account: AddressLike],
|
|
823
|
+
[void],
|
|
824
|
+
"nonpayable"
|
|
825
|
+
>;
|
|
826
|
+
|
|
827
|
+
hasRole: TypedContractMethod<
|
|
828
|
+
[role: BytesLike, account: AddressLike],
|
|
829
|
+
[boolean],
|
|
830
|
+
"view"
|
|
831
|
+
>;
|
|
832
|
+
|
|
833
|
+
isApprovedForAll: TypedContractMethod<
|
|
834
|
+
[owner: AddressLike, operator: AddressLike],
|
|
835
|
+
[boolean],
|
|
836
|
+
"view"
|
|
837
|
+
>;
|
|
838
|
+
|
|
839
|
+
isCertified: TypedContractMethod<[tokenId: BigNumberish], [boolean], "view">;
|
|
840
|
+
|
|
841
|
+
mint: TypedContractMethod<
|
|
842
|
+
[
|
|
843
|
+
to: AddressLike,
|
|
844
|
+
did: string,
|
|
845
|
+
name: string,
|
|
846
|
+
description: string,
|
|
847
|
+
capabilities: string[],
|
|
848
|
+
metadataURI: string
|
|
849
|
+
],
|
|
850
|
+
[bigint],
|
|
851
|
+
"nonpayable"
|
|
852
|
+
>;
|
|
853
|
+
|
|
854
|
+
name: TypedContractMethod<[], [string], "view">;
|
|
855
|
+
|
|
856
|
+
ownerOf: TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
|
857
|
+
|
|
858
|
+
renounceRole: TypedContractMethod<
|
|
859
|
+
[role: BytesLike, callerConfirmation: AddressLike],
|
|
860
|
+
[void],
|
|
861
|
+
"nonpayable"
|
|
862
|
+
>;
|
|
863
|
+
|
|
864
|
+
revokeCertification: TypedContractMethod<
|
|
865
|
+
[tokenId: BigNumberish, reason: string],
|
|
866
|
+
[void],
|
|
867
|
+
"nonpayable"
|
|
868
|
+
>;
|
|
869
|
+
|
|
870
|
+
revokeRole: TypedContractMethod<
|
|
871
|
+
[role: BytesLike, account: AddressLike],
|
|
872
|
+
[void],
|
|
873
|
+
"nonpayable"
|
|
874
|
+
>;
|
|
875
|
+
|
|
876
|
+
"safeTransferFrom(address,address,uint256)": TypedContractMethod<
|
|
877
|
+
[from: AddressLike, to: AddressLike, tokenId: BigNumberish],
|
|
878
|
+
[void],
|
|
879
|
+
"nonpayable"
|
|
880
|
+
>;
|
|
881
|
+
|
|
882
|
+
"safeTransferFrom(address,address,uint256,bytes)": TypedContractMethod<
|
|
883
|
+
[
|
|
884
|
+
from: AddressLike,
|
|
885
|
+
to: AddressLike,
|
|
886
|
+
tokenId: BigNumberish,
|
|
887
|
+
data: BytesLike
|
|
888
|
+
],
|
|
889
|
+
[void],
|
|
890
|
+
"nonpayable"
|
|
891
|
+
>;
|
|
892
|
+
|
|
893
|
+
setApprovalForAll: TypedContractMethod<
|
|
894
|
+
[operator: AddressLike, approved: boolean],
|
|
895
|
+
[void],
|
|
896
|
+
"nonpayable"
|
|
897
|
+
>;
|
|
898
|
+
|
|
899
|
+
supportsInterface: TypedContractMethod<
|
|
900
|
+
[interfaceId: BytesLike],
|
|
901
|
+
[boolean],
|
|
902
|
+
"view"
|
|
903
|
+
>;
|
|
904
|
+
|
|
905
|
+
symbol: TypedContractMethod<[], [string], "view">;
|
|
906
|
+
|
|
907
|
+
tokenByIndex: TypedContractMethod<[index: BigNumberish], [bigint], "view">;
|
|
908
|
+
|
|
909
|
+
tokenOfOwnerByIndex: TypedContractMethod<
|
|
910
|
+
[owner: AddressLike, index: BigNumberish],
|
|
911
|
+
[bigint],
|
|
912
|
+
"view"
|
|
913
|
+
>;
|
|
914
|
+
|
|
915
|
+
tokenURI: TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
|
916
|
+
|
|
917
|
+
totalSupply: TypedContractMethod<[], [bigint], "view">;
|
|
918
|
+
|
|
919
|
+
transferFrom: TypedContractMethod<
|
|
920
|
+
[from: AddressLike, to: AddressLike, tokenId: BigNumberish],
|
|
921
|
+
[void],
|
|
922
|
+
"nonpayable"
|
|
923
|
+
>;
|
|
924
|
+
|
|
925
|
+
updateTrustScore: TypedContractMethod<
|
|
926
|
+
[tokenId: BigNumberish, newTrustScore: BigNumberish],
|
|
927
|
+
[void],
|
|
928
|
+
"nonpayable"
|
|
929
|
+
>;
|
|
930
|
+
|
|
931
|
+
getFunction<T extends ContractMethod = ContractMethod>(
|
|
932
|
+
key: string | FunctionFragment
|
|
933
|
+
): T;
|
|
934
|
+
|
|
935
|
+
getFunction(
|
|
936
|
+
nameOrSignature: "CERTIFIER_ROLE"
|
|
937
|
+
): TypedContractMethod<[], [string], "view">;
|
|
938
|
+
getFunction(
|
|
939
|
+
nameOrSignature: "DEFAULT_ADMIN_ROLE"
|
|
940
|
+
): TypedContractMethod<[], [string], "view">;
|
|
941
|
+
getFunction(
|
|
942
|
+
nameOrSignature: "MINTER_ROLE"
|
|
943
|
+
): TypedContractMethod<[], [string], "view">;
|
|
944
|
+
getFunction(
|
|
945
|
+
nameOrSignature: "addCapabilities"
|
|
946
|
+
): TypedContractMethod<
|
|
947
|
+
[tokenId: BigNumberish, capabilities: string[]],
|
|
948
|
+
[void],
|
|
949
|
+
"nonpayable"
|
|
950
|
+
>;
|
|
951
|
+
getFunction(
|
|
952
|
+
nameOrSignature: "addRestrictions"
|
|
953
|
+
): TypedContractMethod<
|
|
954
|
+
[tokenId: BigNumberish, restrictions: string[]],
|
|
955
|
+
[void],
|
|
956
|
+
"nonpayable"
|
|
957
|
+
>;
|
|
958
|
+
getFunction(
|
|
959
|
+
nameOrSignature: "approve"
|
|
960
|
+
): TypedContractMethod<
|
|
961
|
+
[to: AddressLike, tokenId: BigNumberish],
|
|
962
|
+
[void],
|
|
963
|
+
"nonpayable"
|
|
964
|
+
>;
|
|
965
|
+
getFunction(
|
|
966
|
+
nameOrSignature: "balanceOf"
|
|
967
|
+
): TypedContractMethod<[owner: AddressLike], [bigint], "view">;
|
|
968
|
+
getFunction(
|
|
969
|
+
nameOrSignature: "cards"
|
|
970
|
+
): TypedContractMethod<
|
|
971
|
+
[arg0: BigNumberish],
|
|
972
|
+
[
|
|
973
|
+
[
|
|
974
|
+
string,
|
|
975
|
+
string,
|
|
976
|
+
string,
|
|
977
|
+
bigint,
|
|
978
|
+
bigint,
|
|
979
|
+
boolean,
|
|
980
|
+
string,
|
|
981
|
+
bigint,
|
|
982
|
+
bigint,
|
|
983
|
+
string,
|
|
984
|
+
boolean
|
|
985
|
+
] & {
|
|
986
|
+
did: string;
|
|
987
|
+
name: string;
|
|
988
|
+
description: string;
|
|
989
|
+
trustScore: bigint;
|
|
990
|
+
tier: bigint;
|
|
991
|
+
certified: boolean;
|
|
992
|
+
certifier: string;
|
|
993
|
+
certificationDate: bigint;
|
|
994
|
+
certificationExpiry: bigint;
|
|
995
|
+
metadataURI: string;
|
|
996
|
+
revoked: boolean;
|
|
997
|
+
}
|
|
998
|
+
],
|
|
999
|
+
"view"
|
|
1000
|
+
>;
|
|
1001
|
+
getFunction(
|
|
1002
|
+
nameOrSignature: "certify"
|
|
1003
|
+
): TypedContractMethod<
|
|
1004
|
+
[
|
|
1005
|
+
tokenId: BigNumberish,
|
|
1006
|
+
trustScore: BigNumberish,
|
|
1007
|
+
expiryTimestamp: BigNumberish
|
|
1008
|
+
],
|
|
1009
|
+
[void],
|
|
1010
|
+
"nonpayable"
|
|
1011
|
+
>;
|
|
1012
|
+
getFunction(
|
|
1013
|
+
nameOrSignature: "didToTokenId"
|
|
1014
|
+
): TypedContractMethod<[arg0: string], [bigint], "view">;
|
|
1015
|
+
getFunction(
|
|
1016
|
+
nameOrSignature: "getApproved"
|
|
1017
|
+
): TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
|
1018
|
+
getFunction(
|
|
1019
|
+
nameOrSignature: "getCapabilities"
|
|
1020
|
+
): TypedContractMethod<[tokenId: BigNumberish], [string[]], "view">;
|
|
1021
|
+
getFunction(
|
|
1022
|
+
nameOrSignature: "getCard"
|
|
1023
|
+
): TypedContractMethod<
|
|
1024
|
+
[tokenId: BigNumberish],
|
|
1025
|
+
[AgentCard.AgentCardDataStructOutput],
|
|
1026
|
+
"view"
|
|
1027
|
+
>;
|
|
1028
|
+
getFunction(
|
|
1029
|
+
nameOrSignature: "getCardByDID"
|
|
1030
|
+
): TypedContractMethod<
|
|
1031
|
+
[did: string],
|
|
1032
|
+
[AgentCard.AgentCardDataStructOutput],
|
|
1033
|
+
"view"
|
|
1034
|
+
>;
|
|
1035
|
+
getFunction(
|
|
1036
|
+
nameOrSignature: "getCardsByOwner"
|
|
1037
|
+
): TypedContractMethod<[owner: AddressLike], [bigint[]], "view">;
|
|
1038
|
+
getFunction(
|
|
1039
|
+
nameOrSignature: "getCertifiedAgents"
|
|
1040
|
+
): TypedContractMethod<
|
|
1041
|
+
[offset: BigNumberish, limit: BigNumberish],
|
|
1042
|
+
[bigint[]],
|
|
1043
|
+
"view"
|
|
1044
|
+
>;
|
|
1045
|
+
getFunction(
|
|
1046
|
+
nameOrSignature: "getRestrictions"
|
|
1047
|
+
): TypedContractMethod<[tokenId: BigNumberish], [string[]], "view">;
|
|
1048
|
+
getFunction(
|
|
1049
|
+
nameOrSignature: "getRoleAdmin"
|
|
1050
|
+
): TypedContractMethod<[role: BytesLike], [string], "view">;
|
|
1051
|
+
getFunction(
|
|
1052
|
+
nameOrSignature: "grantRole"
|
|
1053
|
+
): TypedContractMethod<
|
|
1054
|
+
[role: BytesLike, account: AddressLike],
|
|
1055
|
+
[void],
|
|
1056
|
+
"nonpayable"
|
|
1057
|
+
>;
|
|
1058
|
+
getFunction(
|
|
1059
|
+
nameOrSignature: "hasRole"
|
|
1060
|
+
): TypedContractMethod<
|
|
1061
|
+
[role: BytesLike, account: AddressLike],
|
|
1062
|
+
[boolean],
|
|
1063
|
+
"view"
|
|
1064
|
+
>;
|
|
1065
|
+
getFunction(
|
|
1066
|
+
nameOrSignature: "isApprovedForAll"
|
|
1067
|
+
): TypedContractMethod<
|
|
1068
|
+
[owner: AddressLike, operator: AddressLike],
|
|
1069
|
+
[boolean],
|
|
1070
|
+
"view"
|
|
1071
|
+
>;
|
|
1072
|
+
getFunction(
|
|
1073
|
+
nameOrSignature: "isCertified"
|
|
1074
|
+
): TypedContractMethod<[tokenId: BigNumberish], [boolean], "view">;
|
|
1075
|
+
getFunction(
|
|
1076
|
+
nameOrSignature: "mint"
|
|
1077
|
+
): TypedContractMethod<
|
|
1078
|
+
[
|
|
1079
|
+
to: AddressLike,
|
|
1080
|
+
did: string,
|
|
1081
|
+
name: string,
|
|
1082
|
+
description: string,
|
|
1083
|
+
capabilities: string[],
|
|
1084
|
+
metadataURI: string
|
|
1085
|
+
],
|
|
1086
|
+
[bigint],
|
|
1087
|
+
"nonpayable"
|
|
1088
|
+
>;
|
|
1089
|
+
getFunction(
|
|
1090
|
+
nameOrSignature: "name"
|
|
1091
|
+
): TypedContractMethod<[], [string], "view">;
|
|
1092
|
+
getFunction(
|
|
1093
|
+
nameOrSignature: "ownerOf"
|
|
1094
|
+
): TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
|
1095
|
+
getFunction(
|
|
1096
|
+
nameOrSignature: "renounceRole"
|
|
1097
|
+
): TypedContractMethod<
|
|
1098
|
+
[role: BytesLike, callerConfirmation: AddressLike],
|
|
1099
|
+
[void],
|
|
1100
|
+
"nonpayable"
|
|
1101
|
+
>;
|
|
1102
|
+
getFunction(
|
|
1103
|
+
nameOrSignature: "revokeCertification"
|
|
1104
|
+
): TypedContractMethod<
|
|
1105
|
+
[tokenId: BigNumberish, reason: string],
|
|
1106
|
+
[void],
|
|
1107
|
+
"nonpayable"
|
|
1108
|
+
>;
|
|
1109
|
+
getFunction(
|
|
1110
|
+
nameOrSignature: "revokeRole"
|
|
1111
|
+
): TypedContractMethod<
|
|
1112
|
+
[role: BytesLike, account: AddressLike],
|
|
1113
|
+
[void],
|
|
1114
|
+
"nonpayable"
|
|
1115
|
+
>;
|
|
1116
|
+
getFunction(
|
|
1117
|
+
nameOrSignature: "safeTransferFrom(address,address,uint256)"
|
|
1118
|
+
): TypedContractMethod<
|
|
1119
|
+
[from: AddressLike, to: AddressLike, tokenId: BigNumberish],
|
|
1120
|
+
[void],
|
|
1121
|
+
"nonpayable"
|
|
1122
|
+
>;
|
|
1123
|
+
getFunction(
|
|
1124
|
+
nameOrSignature: "safeTransferFrom(address,address,uint256,bytes)"
|
|
1125
|
+
): TypedContractMethod<
|
|
1126
|
+
[
|
|
1127
|
+
from: AddressLike,
|
|
1128
|
+
to: AddressLike,
|
|
1129
|
+
tokenId: BigNumberish,
|
|
1130
|
+
data: BytesLike
|
|
1131
|
+
],
|
|
1132
|
+
[void],
|
|
1133
|
+
"nonpayable"
|
|
1134
|
+
>;
|
|
1135
|
+
getFunction(
|
|
1136
|
+
nameOrSignature: "setApprovalForAll"
|
|
1137
|
+
): TypedContractMethod<
|
|
1138
|
+
[operator: AddressLike, approved: boolean],
|
|
1139
|
+
[void],
|
|
1140
|
+
"nonpayable"
|
|
1141
|
+
>;
|
|
1142
|
+
getFunction(
|
|
1143
|
+
nameOrSignature: "supportsInterface"
|
|
1144
|
+
): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
|
|
1145
|
+
getFunction(
|
|
1146
|
+
nameOrSignature: "symbol"
|
|
1147
|
+
): TypedContractMethod<[], [string], "view">;
|
|
1148
|
+
getFunction(
|
|
1149
|
+
nameOrSignature: "tokenByIndex"
|
|
1150
|
+
): TypedContractMethod<[index: BigNumberish], [bigint], "view">;
|
|
1151
|
+
getFunction(
|
|
1152
|
+
nameOrSignature: "tokenOfOwnerByIndex"
|
|
1153
|
+
): TypedContractMethod<
|
|
1154
|
+
[owner: AddressLike, index: BigNumberish],
|
|
1155
|
+
[bigint],
|
|
1156
|
+
"view"
|
|
1157
|
+
>;
|
|
1158
|
+
getFunction(
|
|
1159
|
+
nameOrSignature: "tokenURI"
|
|
1160
|
+
): TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
|
1161
|
+
getFunction(
|
|
1162
|
+
nameOrSignature: "totalSupply"
|
|
1163
|
+
): TypedContractMethod<[], [bigint], "view">;
|
|
1164
|
+
getFunction(
|
|
1165
|
+
nameOrSignature: "transferFrom"
|
|
1166
|
+
): TypedContractMethod<
|
|
1167
|
+
[from: AddressLike, to: AddressLike, tokenId: BigNumberish],
|
|
1168
|
+
[void],
|
|
1169
|
+
"nonpayable"
|
|
1170
|
+
>;
|
|
1171
|
+
getFunction(
|
|
1172
|
+
nameOrSignature: "updateTrustScore"
|
|
1173
|
+
): TypedContractMethod<
|
|
1174
|
+
[tokenId: BigNumberish, newTrustScore: BigNumberish],
|
|
1175
|
+
[void],
|
|
1176
|
+
"nonpayable"
|
|
1177
|
+
>;
|
|
1178
|
+
|
|
1179
|
+
getEvent(
|
|
1180
|
+
key: "AgentCardMinted"
|
|
1181
|
+
): TypedContractEvent<
|
|
1182
|
+
AgentCardMintedEvent.InputTuple,
|
|
1183
|
+
AgentCardMintedEvent.OutputTuple,
|
|
1184
|
+
AgentCardMintedEvent.OutputObject
|
|
1185
|
+
>;
|
|
1186
|
+
getEvent(
|
|
1187
|
+
key: "AgentCertified"
|
|
1188
|
+
): TypedContractEvent<
|
|
1189
|
+
AgentCertifiedEvent.InputTuple,
|
|
1190
|
+
AgentCertifiedEvent.OutputTuple,
|
|
1191
|
+
AgentCertifiedEvent.OutputObject
|
|
1192
|
+
>;
|
|
1193
|
+
getEvent(
|
|
1194
|
+
key: "Approval"
|
|
1195
|
+
): TypedContractEvent<
|
|
1196
|
+
ApprovalEvent.InputTuple,
|
|
1197
|
+
ApprovalEvent.OutputTuple,
|
|
1198
|
+
ApprovalEvent.OutputObject
|
|
1199
|
+
>;
|
|
1200
|
+
getEvent(
|
|
1201
|
+
key: "ApprovalForAll"
|
|
1202
|
+
): TypedContractEvent<
|
|
1203
|
+
ApprovalForAllEvent.InputTuple,
|
|
1204
|
+
ApprovalForAllEvent.OutputTuple,
|
|
1205
|
+
ApprovalForAllEvent.OutputObject
|
|
1206
|
+
>;
|
|
1207
|
+
getEvent(
|
|
1208
|
+
key: "BatchMetadataUpdate"
|
|
1209
|
+
): TypedContractEvent<
|
|
1210
|
+
BatchMetadataUpdateEvent.InputTuple,
|
|
1211
|
+
BatchMetadataUpdateEvent.OutputTuple,
|
|
1212
|
+
BatchMetadataUpdateEvent.OutputObject
|
|
1213
|
+
>;
|
|
1214
|
+
getEvent(
|
|
1215
|
+
key: "CapabilitiesUpdated"
|
|
1216
|
+
): TypedContractEvent<
|
|
1217
|
+
CapabilitiesUpdatedEvent.InputTuple,
|
|
1218
|
+
CapabilitiesUpdatedEvent.OutputTuple,
|
|
1219
|
+
CapabilitiesUpdatedEvent.OutputObject
|
|
1220
|
+
>;
|
|
1221
|
+
getEvent(
|
|
1222
|
+
key: "CertificationRevoked"
|
|
1223
|
+
): TypedContractEvent<
|
|
1224
|
+
CertificationRevokedEvent.InputTuple,
|
|
1225
|
+
CertificationRevokedEvent.OutputTuple,
|
|
1226
|
+
CertificationRevokedEvent.OutputObject
|
|
1227
|
+
>;
|
|
1228
|
+
getEvent(
|
|
1229
|
+
key: "MetadataUpdate"
|
|
1230
|
+
): TypedContractEvent<
|
|
1231
|
+
MetadataUpdateEvent.InputTuple,
|
|
1232
|
+
MetadataUpdateEvent.OutputTuple,
|
|
1233
|
+
MetadataUpdateEvent.OutputObject
|
|
1234
|
+
>;
|
|
1235
|
+
getEvent(
|
|
1236
|
+
key: "RoleAdminChanged"
|
|
1237
|
+
): TypedContractEvent<
|
|
1238
|
+
RoleAdminChangedEvent.InputTuple,
|
|
1239
|
+
RoleAdminChangedEvent.OutputTuple,
|
|
1240
|
+
RoleAdminChangedEvent.OutputObject
|
|
1241
|
+
>;
|
|
1242
|
+
getEvent(
|
|
1243
|
+
key: "RoleGranted"
|
|
1244
|
+
): TypedContractEvent<
|
|
1245
|
+
RoleGrantedEvent.InputTuple,
|
|
1246
|
+
RoleGrantedEvent.OutputTuple,
|
|
1247
|
+
RoleGrantedEvent.OutputObject
|
|
1248
|
+
>;
|
|
1249
|
+
getEvent(
|
|
1250
|
+
key: "RoleRevoked"
|
|
1251
|
+
): TypedContractEvent<
|
|
1252
|
+
RoleRevokedEvent.InputTuple,
|
|
1253
|
+
RoleRevokedEvent.OutputTuple,
|
|
1254
|
+
RoleRevokedEvent.OutputObject
|
|
1255
|
+
>;
|
|
1256
|
+
getEvent(
|
|
1257
|
+
key: "Transfer"
|
|
1258
|
+
): TypedContractEvent<
|
|
1259
|
+
TransferEvent.InputTuple,
|
|
1260
|
+
TransferEvent.OutputTuple,
|
|
1261
|
+
TransferEvent.OutputObject
|
|
1262
|
+
>;
|
|
1263
|
+
getEvent(
|
|
1264
|
+
key: "TrustScoreUpdated"
|
|
1265
|
+
): TypedContractEvent<
|
|
1266
|
+
TrustScoreUpdatedEvent.InputTuple,
|
|
1267
|
+
TrustScoreUpdatedEvent.OutputTuple,
|
|
1268
|
+
TrustScoreUpdatedEvent.OutputObject
|
|
1269
|
+
>;
|
|
1270
|
+
|
|
1271
|
+
filters: {
|
|
1272
|
+
"AgentCardMinted(uint256,string,address,string)": TypedContractEvent<
|
|
1273
|
+
AgentCardMintedEvent.InputTuple,
|
|
1274
|
+
AgentCardMintedEvent.OutputTuple,
|
|
1275
|
+
AgentCardMintedEvent.OutputObject
|
|
1276
|
+
>;
|
|
1277
|
+
AgentCardMinted: TypedContractEvent<
|
|
1278
|
+
AgentCardMintedEvent.InputTuple,
|
|
1279
|
+
AgentCardMintedEvent.OutputTuple,
|
|
1280
|
+
AgentCardMintedEvent.OutputObject
|
|
1281
|
+
>;
|
|
1282
|
+
|
|
1283
|
+
"AgentCertified(uint256,string,address,uint256,uint8)": TypedContractEvent<
|
|
1284
|
+
AgentCertifiedEvent.InputTuple,
|
|
1285
|
+
AgentCertifiedEvent.OutputTuple,
|
|
1286
|
+
AgentCertifiedEvent.OutputObject
|
|
1287
|
+
>;
|
|
1288
|
+
AgentCertified: TypedContractEvent<
|
|
1289
|
+
AgentCertifiedEvent.InputTuple,
|
|
1290
|
+
AgentCertifiedEvent.OutputTuple,
|
|
1291
|
+
AgentCertifiedEvent.OutputObject
|
|
1292
|
+
>;
|
|
1293
|
+
|
|
1294
|
+
"Approval(address,address,uint256)": TypedContractEvent<
|
|
1295
|
+
ApprovalEvent.InputTuple,
|
|
1296
|
+
ApprovalEvent.OutputTuple,
|
|
1297
|
+
ApprovalEvent.OutputObject
|
|
1298
|
+
>;
|
|
1299
|
+
Approval: TypedContractEvent<
|
|
1300
|
+
ApprovalEvent.InputTuple,
|
|
1301
|
+
ApprovalEvent.OutputTuple,
|
|
1302
|
+
ApprovalEvent.OutputObject
|
|
1303
|
+
>;
|
|
1304
|
+
|
|
1305
|
+
"ApprovalForAll(address,address,bool)": TypedContractEvent<
|
|
1306
|
+
ApprovalForAllEvent.InputTuple,
|
|
1307
|
+
ApprovalForAllEvent.OutputTuple,
|
|
1308
|
+
ApprovalForAllEvent.OutputObject
|
|
1309
|
+
>;
|
|
1310
|
+
ApprovalForAll: TypedContractEvent<
|
|
1311
|
+
ApprovalForAllEvent.InputTuple,
|
|
1312
|
+
ApprovalForAllEvent.OutputTuple,
|
|
1313
|
+
ApprovalForAllEvent.OutputObject
|
|
1314
|
+
>;
|
|
1315
|
+
|
|
1316
|
+
"BatchMetadataUpdate(uint256,uint256)": TypedContractEvent<
|
|
1317
|
+
BatchMetadataUpdateEvent.InputTuple,
|
|
1318
|
+
BatchMetadataUpdateEvent.OutputTuple,
|
|
1319
|
+
BatchMetadataUpdateEvent.OutputObject
|
|
1320
|
+
>;
|
|
1321
|
+
BatchMetadataUpdate: TypedContractEvent<
|
|
1322
|
+
BatchMetadataUpdateEvent.InputTuple,
|
|
1323
|
+
BatchMetadataUpdateEvent.OutputTuple,
|
|
1324
|
+
BatchMetadataUpdateEvent.OutputObject
|
|
1325
|
+
>;
|
|
1326
|
+
|
|
1327
|
+
"CapabilitiesUpdated(uint256,string,uint256)": TypedContractEvent<
|
|
1328
|
+
CapabilitiesUpdatedEvent.InputTuple,
|
|
1329
|
+
CapabilitiesUpdatedEvent.OutputTuple,
|
|
1330
|
+
CapabilitiesUpdatedEvent.OutputObject
|
|
1331
|
+
>;
|
|
1332
|
+
CapabilitiesUpdated: TypedContractEvent<
|
|
1333
|
+
CapabilitiesUpdatedEvent.InputTuple,
|
|
1334
|
+
CapabilitiesUpdatedEvent.OutputTuple,
|
|
1335
|
+
CapabilitiesUpdatedEvent.OutputObject
|
|
1336
|
+
>;
|
|
1337
|
+
|
|
1338
|
+
"CertificationRevoked(uint256,string,address,string)": TypedContractEvent<
|
|
1339
|
+
CertificationRevokedEvent.InputTuple,
|
|
1340
|
+
CertificationRevokedEvent.OutputTuple,
|
|
1341
|
+
CertificationRevokedEvent.OutputObject
|
|
1342
|
+
>;
|
|
1343
|
+
CertificationRevoked: TypedContractEvent<
|
|
1344
|
+
CertificationRevokedEvent.InputTuple,
|
|
1345
|
+
CertificationRevokedEvent.OutputTuple,
|
|
1346
|
+
CertificationRevokedEvent.OutputObject
|
|
1347
|
+
>;
|
|
1348
|
+
|
|
1349
|
+
"MetadataUpdate(uint256)": TypedContractEvent<
|
|
1350
|
+
MetadataUpdateEvent.InputTuple,
|
|
1351
|
+
MetadataUpdateEvent.OutputTuple,
|
|
1352
|
+
MetadataUpdateEvent.OutputObject
|
|
1353
|
+
>;
|
|
1354
|
+
MetadataUpdate: TypedContractEvent<
|
|
1355
|
+
MetadataUpdateEvent.InputTuple,
|
|
1356
|
+
MetadataUpdateEvent.OutputTuple,
|
|
1357
|
+
MetadataUpdateEvent.OutputObject
|
|
1358
|
+
>;
|
|
1359
|
+
|
|
1360
|
+
"RoleAdminChanged(bytes32,bytes32,bytes32)": TypedContractEvent<
|
|
1361
|
+
RoleAdminChangedEvent.InputTuple,
|
|
1362
|
+
RoleAdminChangedEvent.OutputTuple,
|
|
1363
|
+
RoleAdminChangedEvent.OutputObject
|
|
1364
|
+
>;
|
|
1365
|
+
RoleAdminChanged: TypedContractEvent<
|
|
1366
|
+
RoleAdminChangedEvent.InputTuple,
|
|
1367
|
+
RoleAdminChangedEvent.OutputTuple,
|
|
1368
|
+
RoleAdminChangedEvent.OutputObject
|
|
1369
|
+
>;
|
|
1370
|
+
|
|
1371
|
+
"RoleGranted(bytes32,address,address)": TypedContractEvent<
|
|
1372
|
+
RoleGrantedEvent.InputTuple,
|
|
1373
|
+
RoleGrantedEvent.OutputTuple,
|
|
1374
|
+
RoleGrantedEvent.OutputObject
|
|
1375
|
+
>;
|
|
1376
|
+
RoleGranted: TypedContractEvent<
|
|
1377
|
+
RoleGrantedEvent.InputTuple,
|
|
1378
|
+
RoleGrantedEvent.OutputTuple,
|
|
1379
|
+
RoleGrantedEvent.OutputObject
|
|
1380
|
+
>;
|
|
1381
|
+
|
|
1382
|
+
"RoleRevoked(bytes32,address,address)": TypedContractEvent<
|
|
1383
|
+
RoleRevokedEvent.InputTuple,
|
|
1384
|
+
RoleRevokedEvent.OutputTuple,
|
|
1385
|
+
RoleRevokedEvent.OutputObject
|
|
1386
|
+
>;
|
|
1387
|
+
RoleRevoked: TypedContractEvent<
|
|
1388
|
+
RoleRevokedEvent.InputTuple,
|
|
1389
|
+
RoleRevokedEvent.OutputTuple,
|
|
1390
|
+
RoleRevokedEvent.OutputObject
|
|
1391
|
+
>;
|
|
1392
|
+
|
|
1393
|
+
"Transfer(address,address,uint256)": TypedContractEvent<
|
|
1394
|
+
TransferEvent.InputTuple,
|
|
1395
|
+
TransferEvent.OutputTuple,
|
|
1396
|
+
TransferEvent.OutputObject
|
|
1397
|
+
>;
|
|
1398
|
+
Transfer: TypedContractEvent<
|
|
1399
|
+
TransferEvent.InputTuple,
|
|
1400
|
+
TransferEvent.OutputTuple,
|
|
1401
|
+
TransferEvent.OutputObject
|
|
1402
|
+
>;
|
|
1403
|
+
|
|
1404
|
+
"TrustScoreUpdated(uint256,string,uint256,uint256,uint8)": TypedContractEvent<
|
|
1405
|
+
TrustScoreUpdatedEvent.InputTuple,
|
|
1406
|
+
TrustScoreUpdatedEvent.OutputTuple,
|
|
1407
|
+
TrustScoreUpdatedEvent.OutputObject
|
|
1408
|
+
>;
|
|
1409
|
+
TrustScoreUpdated: TypedContractEvent<
|
|
1410
|
+
TrustScoreUpdatedEvent.InputTuple,
|
|
1411
|
+
TrustScoreUpdatedEvent.OutputTuple,
|
|
1412
|
+
TrustScoreUpdatedEvent.OutputObject
|
|
1413
|
+
>;
|
|
1414
|
+
};
|
|
1415
|
+
}
|