@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,420 @@
|
|
|
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 interface ERC721Interface extends Interface {
|
|
27
|
+
getFunction(
|
|
28
|
+
nameOrSignature:
|
|
29
|
+
| "approve"
|
|
30
|
+
| "balanceOf"
|
|
31
|
+
| "getApproved"
|
|
32
|
+
| "isApprovedForAll"
|
|
33
|
+
| "name"
|
|
34
|
+
| "ownerOf"
|
|
35
|
+
| "safeTransferFrom(address,address,uint256)"
|
|
36
|
+
| "safeTransferFrom(address,address,uint256,bytes)"
|
|
37
|
+
| "setApprovalForAll"
|
|
38
|
+
| "supportsInterface"
|
|
39
|
+
| "symbol"
|
|
40
|
+
| "tokenURI"
|
|
41
|
+
| "transferFrom"
|
|
42
|
+
): FunctionFragment;
|
|
43
|
+
|
|
44
|
+
getEvent(
|
|
45
|
+
nameOrSignatureOrTopic: "Approval" | "ApprovalForAll" | "Transfer"
|
|
46
|
+
): EventFragment;
|
|
47
|
+
|
|
48
|
+
encodeFunctionData(
|
|
49
|
+
functionFragment: "approve",
|
|
50
|
+
values: [AddressLike, BigNumberish]
|
|
51
|
+
): string;
|
|
52
|
+
encodeFunctionData(
|
|
53
|
+
functionFragment: "balanceOf",
|
|
54
|
+
values: [AddressLike]
|
|
55
|
+
): string;
|
|
56
|
+
encodeFunctionData(
|
|
57
|
+
functionFragment: "getApproved",
|
|
58
|
+
values: [BigNumberish]
|
|
59
|
+
): string;
|
|
60
|
+
encodeFunctionData(
|
|
61
|
+
functionFragment: "isApprovedForAll",
|
|
62
|
+
values: [AddressLike, AddressLike]
|
|
63
|
+
): string;
|
|
64
|
+
encodeFunctionData(functionFragment: "name", values?: undefined): string;
|
|
65
|
+
encodeFunctionData(
|
|
66
|
+
functionFragment: "ownerOf",
|
|
67
|
+
values: [BigNumberish]
|
|
68
|
+
): string;
|
|
69
|
+
encodeFunctionData(
|
|
70
|
+
functionFragment: "safeTransferFrom(address,address,uint256)",
|
|
71
|
+
values: [AddressLike, AddressLike, BigNumberish]
|
|
72
|
+
): string;
|
|
73
|
+
encodeFunctionData(
|
|
74
|
+
functionFragment: "safeTransferFrom(address,address,uint256,bytes)",
|
|
75
|
+
values: [AddressLike, AddressLike, BigNumberish, BytesLike]
|
|
76
|
+
): string;
|
|
77
|
+
encodeFunctionData(
|
|
78
|
+
functionFragment: "setApprovalForAll",
|
|
79
|
+
values: [AddressLike, boolean]
|
|
80
|
+
): string;
|
|
81
|
+
encodeFunctionData(
|
|
82
|
+
functionFragment: "supportsInterface",
|
|
83
|
+
values: [BytesLike]
|
|
84
|
+
): string;
|
|
85
|
+
encodeFunctionData(functionFragment: "symbol", values?: undefined): string;
|
|
86
|
+
encodeFunctionData(
|
|
87
|
+
functionFragment: "tokenURI",
|
|
88
|
+
values: [BigNumberish]
|
|
89
|
+
): string;
|
|
90
|
+
encodeFunctionData(
|
|
91
|
+
functionFragment: "transferFrom",
|
|
92
|
+
values: [AddressLike, AddressLike, BigNumberish]
|
|
93
|
+
): string;
|
|
94
|
+
|
|
95
|
+
decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
|
|
96
|
+
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
|
97
|
+
decodeFunctionResult(
|
|
98
|
+
functionFragment: "getApproved",
|
|
99
|
+
data: BytesLike
|
|
100
|
+
): Result;
|
|
101
|
+
decodeFunctionResult(
|
|
102
|
+
functionFragment: "isApprovedForAll",
|
|
103
|
+
data: BytesLike
|
|
104
|
+
): Result;
|
|
105
|
+
decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
|
|
106
|
+
decodeFunctionResult(functionFragment: "ownerOf", data: BytesLike): Result;
|
|
107
|
+
decodeFunctionResult(
|
|
108
|
+
functionFragment: "safeTransferFrom(address,address,uint256)",
|
|
109
|
+
data: BytesLike
|
|
110
|
+
): Result;
|
|
111
|
+
decodeFunctionResult(
|
|
112
|
+
functionFragment: "safeTransferFrom(address,address,uint256,bytes)",
|
|
113
|
+
data: BytesLike
|
|
114
|
+
): Result;
|
|
115
|
+
decodeFunctionResult(
|
|
116
|
+
functionFragment: "setApprovalForAll",
|
|
117
|
+
data: BytesLike
|
|
118
|
+
): Result;
|
|
119
|
+
decodeFunctionResult(
|
|
120
|
+
functionFragment: "supportsInterface",
|
|
121
|
+
data: BytesLike
|
|
122
|
+
): Result;
|
|
123
|
+
decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result;
|
|
124
|
+
decodeFunctionResult(functionFragment: "tokenURI", data: BytesLike): Result;
|
|
125
|
+
decodeFunctionResult(
|
|
126
|
+
functionFragment: "transferFrom",
|
|
127
|
+
data: BytesLike
|
|
128
|
+
): Result;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export namespace ApprovalEvent {
|
|
132
|
+
export type InputTuple = [
|
|
133
|
+
owner: AddressLike,
|
|
134
|
+
approved: AddressLike,
|
|
135
|
+
tokenId: BigNumberish
|
|
136
|
+
];
|
|
137
|
+
export type OutputTuple = [owner: string, approved: string, tokenId: bigint];
|
|
138
|
+
export interface OutputObject {
|
|
139
|
+
owner: string;
|
|
140
|
+
approved: string;
|
|
141
|
+
tokenId: bigint;
|
|
142
|
+
}
|
|
143
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
144
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
145
|
+
export type Log = TypedEventLog<Event>;
|
|
146
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export namespace ApprovalForAllEvent {
|
|
150
|
+
export type InputTuple = [
|
|
151
|
+
owner: AddressLike,
|
|
152
|
+
operator: AddressLike,
|
|
153
|
+
approved: boolean
|
|
154
|
+
];
|
|
155
|
+
export type OutputTuple = [
|
|
156
|
+
owner: string,
|
|
157
|
+
operator: string,
|
|
158
|
+
approved: boolean
|
|
159
|
+
];
|
|
160
|
+
export interface OutputObject {
|
|
161
|
+
owner: string;
|
|
162
|
+
operator: string;
|
|
163
|
+
approved: boolean;
|
|
164
|
+
}
|
|
165
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
166
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
167
|
+
export type Log = TypedEventLog<Event>;
|
|
168
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export namespace TransferEvent {
|
|
172
|
+
export type InputTuple = [
|
|
173
|
+
from: AddressLike,
|
|
174
|
+
to: AddressLike,
|
|
175
|
+
tokenId: BigNumberish
|
|
176
|
+
];
|
|
177
|
+
export type OutputTuple = [from: string, to: string, tokenId: bigint];
|
|
178
|
+
export interface OutputObject {
|
|
179
|
+
from: string;
|
|
180
|
+
to: string;
|
|
181
|
+
tokenId: bigint;
|
|
182
|
+
}
|
|
183
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
184
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
185
|
+
export type Log = TypedEventLog<Event>;
|
|
186
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export interface ERC721 extends BaseContract {
|
|
190
|
+
connect(runner?: ContractRunner | null): ERC721;
|
|
191
|
+
waitForDeployment(): Promise<this>;
|
|
192
|
+
|
|
193
|
+
interface: ERC721Interface;
|
|
194
|
+
|
|
195
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
196
|
+
event: TCEvent,
|
|
197
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
198
|
+
toBlock?: string | number | undefined
|
|
199
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
200
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
201
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
202
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
203
|
+
toBlock?: string | number | undefined
|
|
204
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
205
|
+
|
|
206
|
+
on<TCEvent extends TypedContractEvent>(
|
|
207
|
+
event: TCEvent,
|
|
208
|
+
listener: TypedListener<TCEvent>
|
|
209
|
+
): Promise<this>;
|
|
210
|
+
on<TCEvent extends TypedContractEvent>(
|
|
211
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
212
|
+
listener: TypedListener<TCEvent>
|
|
213
|
+
): Promise<this>;
|
|
214
|
+
|
|
215
|
+
once<TCEvent extends TypedContractEvent>(
|
|
216
|
+
event: TCEvent,
|
|
217
|
+
listener: TypedListener<TCEvent>
|
|
218
|
+
): Promise<this>;
|
|
219
|
+
once<TCEvent extends TypedContractEvent>(
|
|
220
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
221
|
+
listener: TypedListener<TCEvent>
|
|
222
|
+
): Promise<this>;
|
|
223
|
+
|
|
224
|
+
listeners<TCEvent extends TypedContractEvent>(
|
|
225
|
+
event: TCEvent
|
|
226
|
+
): Promise<Array<TypedListener<TCEvent>>>;
|
|
227
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
228
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(
|
|
229
|
+
event?: TCEvent
|
|
230
|
+
): Promise<this>;
|
|
231
|
+
|
|
232
|
+
approve: TypedContractMethod<
|
|
233
|
+
[to: AddressLike, tokenId: BigNumberish],
|
|
234
|
+
[void],
|
|
235
|
+
"nonpayable"
|
|
236
|
+
>;
|
|
237
|
+
|
|
238
|
+
balanceOf: TypedContractMethod<[owner: AddressLike], [bigint], "view">;
|
|
239
|
+
|
|
240
|
+
getApproved: TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
|
241
|
+
|
|
242
|
+
isApprovedForAll: TypedContractMethod<
|
|
243
|
+
[owner: AddressLike, operator: AddressLike],
|
|
244
|
+
[boolean],
|
|
245
|
+
"view"
|
|
246
|
+
>;
|
|
247
|
+
|
|
248
|
+
name: TypedContractMethod<[], [string], "view">;
|
|
249
|
+
|
|
250
|
+
ownerOf: TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
|
251
|
+
|
|
252
|
+
"safeTransferFrom(address,address,uint256)": TypedContractMethod<
|
|
253
|
+
[from: AddressLike, to: AddressLike, tokenId: BigNumberish],
|
|
254
|
+
[void],
|
|
255
|
+
"nonpayable"
|
|
256
|
+
>;
|
|
257
|
+
|
|
258
|
+
"safeTransferFrom(address,address,uint256,bytes)": TypedContractMethod<
|
|
259
|
+
[
|
|
260
|
+
from: AddressLike,
|
|
261
|
+
to: AddressLike,
|
|
262
|
+
tokenId: BigNumberish,
|
|
263
|
+
data: BytesLike
|
|
264
|
+
],
|
|
265
|
+
[void],
|
|
266
|
+
"nonpayable"
|
|
267
|
+
>;
|
|
268
|
+
|
|
269
|
+
setApprovalForAll: TypedContractMethod<
|
|
270
|
+
[operator: AddressLike, approved: boolean],
|
|
271
|
+
[void],
|
|
272
|
+
"nonpayable"
|
|
273
|
+
>;
|
|
274
|
+
|
|
275
|
+
supportsInterface: TypedContractMethod<
|
|
276
|
+
[interfaceId: BytesLike],
|
|
277
|
+
[boolean],
|
|
278
|
+
"view"
|
|
279
|
+
>;
|
|
280
|
+
|
|
281
|
+
symbol: TypedContractMethod<[], [string], "view">;
|
|
282
|
+
|
|
283
|
+
tokenURI: TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
|
284
|
+
|
|
285
|
+
transferFrom: TypedContractMethod<
|
|
286
|
+
[from: AddressLike, to: AddressLike, tokenId: BigNumberish],
|
|
287
|
+
[void],
|
|
288
|
+
"nonpayable"
|
|
289
|
+
>;
|
|
290
|
+
|
|
291
|
+
getFunction<T extends ContractMethod = ContractMethod>(
|
|
292
|
+
key: string | FunctionFragment
|
|
293
|
+
): T;
|
|
294
|
+
|
|
295
|
+
getFunction(
|
|
296
|
+
nameOrSignature: "approve"
|
|
297
|
+
): TypedContractMethod<
|
|
298
|
+
[to: AddressLike, tokenId: BigNumberish],
|
|
299
|
+
[void],
|
|
300
|
+
"nonpayable"
|
|
301
|
+
>;
|
|
302
|
+
getFunction(
|
|
303
|
+
nameOrSignature: "balanceOf"
|
|
304
|
+
): TypedContractMethod<[owner: AddressLike], [bigint], "view">;
|
|
305
|
+
getFunction(
|
|
306
|
+
nameOrSignature: "getApproved"
|
|
307
|
+
): TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
|
308
|
+
getFunction(
|
|
309
|
+
nameOrSignature: "isApprovedForAll"
|
|
310
|
+
): TypedContractMethod<
|
|
311
|
+
[owner: AddressLike, operator: AddressLike],
|
|
312
|
+
[boolean],
|
|
313
|
+
"view"
|
|
314
|
+
>;
|
|
315
|
+
getFunction(
|
|
316
|
+
nameOrSignature: "name"
|
|
317
|
+
): TypedContractMethod<[], [string], "view">;
|
|
318
|
+
getFunction(
|
|
319
|
+
nameOrSignature: "ownerOf"
|
|
320
|
+
): TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
|
321
|
+
getFunction(
|
|
322
|
+
nameOrSignature: "safeTransferFrom(address,address,uint256)"
|
|
323
|
+
): TypedContractMethod<
|
|
324
|
+
[from: AddressLike, to: AddressLike, tokenId: BigNumberish],
|
|
325
|
+
[void],
|
|
326
|
+
"nonpayable"
|
|
327
|
+
>;
|
|
328
|
+
getFunction(
|
|
329
|
+
nameOrSignature: "safeTransferFrom(address,address,uint256,bytes)"
|
|
330
|
+
): TypedContractMethod<
|
|
331
|
+
[
|
|
332
|
+
from: AddressLike,
|
|
333
|
+
to: AddressLike,
|
|
334
|
+
tokenId: BigNumberish,
|
|
335
|
+
data: BytesLike
|
|
336
|
+
],
|
|
337
|
+
[void],
|
|
338
|
+
"nonpayable"
|
|
339
|
+
>;
|
|
340
|
+
getFunction(
|
|
341
|
+
nameOrSignature: "setApprovalForAll"
|
|
342
|
+
): TypedContractMethod<
|
|
343
|
+
[operator: AddressLike, approved: boolean],
|
|
344
|
+
[void],
|
|
345
|
+
"nonpayable"
|
|
346
|
+
>;
|
|
347
|
+
getFunction(
|
|
348
|
+
nameOrSignature: "supportsInterface"
|
|
349
|
+
): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
|
|
350
|
+
getFunction(
|
|
351
|
+
nameOrSignature: "symbol"
|
|
352
|
+
): TypedContractMethod<[], [string], "view">;
|
|
353
|
+
getFunction(
|
|
354
|
+
nameOrSignature: "tokenURI"
|
|
355
|
+
): TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
|
356
|
+
getFunction(
|
|
357
|
+
nameOrSignature: "transferFrom"
|
|
358
|
+
): TypedContractMethod<
|
|
359
|
+
[from: AddressLike, to: AddressLike, tokenId: BigNumberish],
|
|
360
|
+
[void],
|
|
361
|
+
"nonpayable"
|
|
362
|
+
>;
|
|
363
|
+
|
|
364
|
+
getEvent(
|
|
365
|
+
key: "Approval"
|
|
366
|
+
): TypedContractEvent<
|
|
367
|
+
ApprovalEvent.InputTuple,
|
|
368
|
+
ApprovalEvent.OutputTuple,
|
|
369
|
+
ApprovalEvent.OutputObject
|
|
370
|
+
>;
|
|
371
|
+
getEvent(
|
|
372
|
+
key: "ApprovalForAll"
|
|
373
|
+
): TypedContractEvent<
|
|
374
|
+
ApprovalForAllEvent.InputTuple,
|
|
375
|
+
ApprovalForAllEvent.OutputTuple,
|
|
376
|
+
ApprovalForAllEvent.OutputObject
|
|
377
|
+
>;
|
|
378
|
+
getEvent(
|
|
379
|
+
key: "Transfer"
|
|
380
|
+
): TypedContractEvent<
|
|
381
|
+
TransferEvent.InputTuple,
|
|
382
|
+
TransferEvent.OutputTuple,
|
|
383
|
+
TransferEvent.OutputObject
|
|
384
|
+
>;
|
|
385
|
+
|
|
386
|
+
filters: {
|
|
387
|
+
"Approval(address,address,uint256)": TypedContractEvent<
|
|
388
|
+
ApprovalEvent.InputTuple,
|
|
389
|
+
ApprovalEvent.OutputTuple,
|
|
390
|
+
ApprovalEvent.OutputObject
|
|
391
|
+
>;
|
|
392
|
+
Approval: TypedContractEvent<
|
|
393
|
+
ApprovalEvent.InputTuple,
|
|
394
|
+
ApprovalEvent.OutputTuple,
|
|
395
|
+
ApprovalEvent.OutputObject
|
|
396
|
+
>;
|
|
397
|
+
|
|
398
|
+
"ApprovalForAll(address,address,bool)": TypedContractEvent<
|
|
399
|
+
ApprovalForAllEvent.InputTuple,
|
|
400
|
+
ApprovalForAllEvent.OutputTuple,
|
|
401
|
+
ApprovalForAllEvent.OutputObject
|
|
402
|
+
>;
|
|
403
|
+
ApprovalForAll: TypedContractEvent<
|
|
404
|
+
ApprovalForAllEvent.InputTuple,
|
|
405
|
+
ApprovalForAllEvent.OutputTuple,
|
|
406
|
+
ApprovalForAllEvent.OutputObject
|
|
407
|
+
>;
|
|
408
|
+
|
|
409
|
+
"Transfer(address,address,uint256)": TypedContractEvent<
|
|
410
|
+
TransferEvent.InputTuple,
|
|
411
|
+
TransferEvent.OutputTuple,
|
|
412
|
+
TransferEvent.OutputObject
|
|
413
|
+
>;
|
|
414
|
+
Transfer: TypedContractEvent<
|
|
415
|
+
TransferEvent.InputTuple,
|
|
416
|
+
TransferEvent.OutputTuple,
|
|
417
|
+
TransferEvent.OutputObject
|
|
418
|
+
>;
|
|
419
|
+
};
|
|
420
|
+
}
|