@tonappchain/sdk 0.7.0-rc24-test-7 → 0.7.0-rc24-test-8

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.
Files changed (34) hide show
  1. package/dist/artifacts/dev/tac/artifacts.d.ts +2 -24
  2. package/dist/artifacts/dev/tac/artifacts.js +4 -4
  3. package/dist/artifacts/dev/tac/internal/artifacts/@openzeppelin/contracts/token/{ERC20/ERC20.sol/ERC20.json → ERC721/IERC721.sol/IERC721.json} +116 -139
  4. package/dist/artifacts/dev/tac/internal/artifacts/contracts/interfaces/tokens/IERC20WithDecimals.sol/IERC20WithDecimals.json +207 -0
  5. package/dist/artifacts/{testnet/tac/internal/typechain-types/@openzeppelin/contracts/token/ERC721/ERC721.d.ts → dev/tac/internal/typechain-types/@openzeppelin/contracts/token/ERC721/IERC721.d.ts} +5 -17
  6. package/dist/artifacts/{mainnet/tac/internal/typechain-types/@openzeppelin/contracts/token/ERC20/ERC20.d.ts → dev/tac/internal/typechain-types/contracts/interfaces/tokens/IERC20WithDecimals.d.ts} +6 -14
  7. package/dist/artifacts/dev/tac/wrappers.d.ts +2 -2
  8. package/dist/artifacts/mainnet/tac/artifacts.d.ts +2 -24
  9. package/dist/artifacts/mainnet/tac/artifacts.js +4 -4
  10. package/dist/artifacts/{testnet/tac/internal/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.json → mainnet/tac/internal/artifacts/@openzeppelin/contracts/token/ERC721/IERC721.sol/IERC721.json} +116 -139
  11. package/dist/artifacts/mainnet/tac/internal/artifacts/contracts/interfaces/tokens/IERC20WithDecimals.sol/IERC20WithDecimals.json +207 -0
  12. package/dist/artifacts/mainnet/tac/internal/typechain-types/@openzeppelin/contracts/token/ERC721/{ERC721.d.ts → IERC721.d.ts} +5 -17
  13. package/dist/artifacts/{testnet/tac/internal/typechain-types/@openzeppelin/contracts/token/ERC20/ERC20.d.ts → mainnet/tac/internal/typechain-types/contracts/interfaces/tokens/IERC20WithDecimals.d.ts} +6 -14
  14. package/dist/artifacts/mainnet/tac/wrappers.d.ts +2 -2
  15. package/dist/artifacts/tacTypes.d.ts +2 -2
  16. package/dist/artifacts/testnet/tac/artifacts.d.ts +2 -24
  17. package/dist/artifacts/testnet/tac/artifacts.js +4 -4
  18. package/dist/artifacts/{mainnet/tac/internal/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.json → testnet/tac/internal/artifacts/@openzeppelin/contracts/token/ERC721/IERC721.sol/IERC721.json} +116 -139
  19. package/dist/artifacts/testnet/tac/internal/artifacts/contracts/interfaces/tokens/IERC20WithDecimals.sol/IERC20WithDecimals.json +207 -0
  20. package/dist/artifacts/{dev/tac/internal/typechain-types/@openzeppelin/contracts/token/ERC721/ERC721.d.ts → testnet/tac/internal/typechain-types/@openzeppelin/contracts/token/ERC721/IERC721.d.ts} +5 -17
  21. package/dist/artifacts/{dev/tac/internal/typechain-types/@openzeppelin/contracts/token/ERC20/ERC20.d.ts → testnet/tac/internal/typechain-types/contracts/interfaces/tokens/IERC20WithDecimals.d.ts} +6 -14
  22. package/dist/artifacts/testnet/tac/wrappers.d.ts +2 -2
  23. package/dist/src/assets/FT.js +2 -2
  24. package/dist/src/sdk/TACTransactionManager.js +2 -2
  25. package/package.json +1 -1
  26. package/dist/artifacts/dev/tac/internal/artifacts/@openzeppelin/contracts/token/ERC721/ERC721.sol/ERC721.json +0 -444
  27. package/dist/artifacts/mainnet/tac/internal/artifacts/@openzeppelin/contracts/token/ERC721/ERC721.sol/ERC721.json +0 -444
  28. package/dist/artifacts/testnet/tac/internal/artifacts/@openzeppelin/contracts/token/ERC721/ERC721.sol/ERC721.json +0 -444
  29. /package/dist/artifacts/dev/tac/internal/typechain-types/@openzeppelin/contracts/token/{ERC20/ERC20.js → ERC721/IERC721.js} +0 -0
  30. /package/dist/artifacts/dev/tac/internal/typechain-types/{@openzeppelin/contracts/token/ERC721/ERC721.js → contracts/interfaces/tokens/IERC20WithDecimals.js} +0 -0
  31. /package/dist/artifacts/mainnet/tac/internal/typechain-types/@openzeppelin/contracts/token/{ERC20/ERC20.js → ERC721/IERC721.js} +0 -0
  32. /package/dist/artifacts/mainnet/tac/internal/typechain-types/{@openzeppelin/contracts/token/ERC721/ERC721.js → contracts/interfaces/tokens/IERC20WithDecimals.js} +0 -0
  33. /package/dist/artifacts/testnet/tac/internal/typechain-types/@openzeppelin/contracts/token/{ERC20/ERC20.js → ERC721/IERC721.js} +0 -0
  34. /package/dist/artifacts/testnet/tac/internal/typechain-types/{@openzeppelin/contracts/token/ERC721/ERC721.js → contracts/interfaces/tokens/IERC20WithDecimals.js} +0 -0
@@ -1,33 +1,27 @@
1
1
  import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
2
2
  import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../../../common";
3
- export interface ERC721Interface extends Interface {
4
- getFunction(nameOrSignature: "approve" | "balanceOf" | "getApproved" | "isApprovedForAll" | "name" | "ownerOf" | "safeTransferFrom(address,address,uint256)" | "safeTransferFrom(address,address,uint256,bytes)" | "setApprovalForAll" | "supportsInterface" | "symbol" | "tokenURI" | "transferFrom"): FunctionFragment;
3
+ export interface IERC721Interface extends Interface {
4
+ getFunction(nameOrSignature: "approve" | "balanceOf" | "getApproved" | "isApprovedForAll" | "ownerOf" | "safeTransferFrom(address,address,uint256)" | "safeTransferFrom(address,address,uint256,bytes)" | "setApprovalForAll" | "supportsInterface" | "transferFrom"): FunctionFragment;
5
5
  getEvent(nameOrSignatureOrTopic: "Approval" | "ApprovalForAll" | "Transfer"): EventFragment;
6
6
  encodeFunctionData(functionFragment: "approve", values: [AddressLike, BigNumberish]): string;
7
7
  encodeFunctionData(functionFragment: "balanceOf", values: [AddressLike]): string;
8
8
  encodeFunctionData(functionFragment: "getApproved", values: [BigNumberish]): string;
9
9
  encodeFunctionData(functionFragment: "isApprovedForAll", values: [AddressLike, AddressLike]): string;
10
- encodeFunctionData(functionFragment: "name", values?: undefined): string;
11
10
  encodeFunctionData(functionFragment: "ownerOf", values: [BigNumberish]): string;
12
11
  encodeFunctionData(functionFragment: "safeTransferFrom(address,address,uint256)", values: [AddressLike, AddressLike, BigNumberish]): string;
13
12
  encodeFunctionData(functionFragment: "safeTransferFrom(address,address,uint256,bytes)", values: [AddressLike, AddressLike, BigNumberish, BytesLike]): string;
14
13
  encodeFunctionData(functionFragment: "setApprovalForAll", values: [AddressLike, boolean]): string;
15
14
  encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
16
- encodeFunctionData(functionFragment: "symbol", values?: undefined): string;
17
- encodeFunctionData(functionFragment: "tokenURI", values: [BigNumberish]): string;
18
15
  encodeFunctionData(functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish]): string;
19
16
  decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
20
17
  decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
21
18
  decodeFunctionResult(functionFragment: "getApproved", data: BytesLike): Result;
22
19
  decodeFunctionResult(functionFragment: "isApprovedForAll", data: BytesLike): Result;
23
- decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
24
20
  decodeFunctionResult(functionFragment: "ownerOf", data: BytesLike): Result;
25
21
  decodeFunctionResult(functionFragment: "safeTransferFrom(address,address,uint256)", data: BytesLike): Result;
26
22
  decodeFunctionResult(functionFragment: "safeTransferFrom(address,address,uint256,bytes)", data: BytesLike): Result;
27
23
  decodeFunctionResult(functionFragment: "setApprovalForAll", data: BytesLike): Result;
28
24
  decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result;
29
- decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result;
30
- decodeFunctionResult(functionFragment: "tokenURI", data: BytesLike): Result;
31
25
  decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
32
26
  }
33
27
  export declare namespace ApprovalEvent {
@@ -85,10 +79,10 @@ export declare namespace TransferEvent {
85
79
  type Log = TypedEventLog<Event>;
86
80
  type LogDescription = TypedLogDescription<Event>;
87
81
  }
88
- export interface ERC721 extends BaseContract {
89
- connect(runner?: ContractRunner | null): ERC721;
82
+ export interface IERC721 extends BaseContract {
83
+ connect(runner?: ContractRunner | null): IERC721;
90
84
  waitForDeployment(): Promise<this>;
91
- interface: ERC721Interface;
85
+ interface: IERC721Interface;
92
86
  queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
93
87
  queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
94
88
  on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
@@ -112,7 +106,6 @@ export interface ERC721 extends BaseContract {
112
106
  ], [
113
107
  boolean
114
108
  ], "view">;
115
- name: TypedContractMethod<[], [string], "view">;
116
109
  ownerOf: TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
117
110
  "safeTransferFrom(address,address,uint256)": TypedContractMethod<[
118
111
  from: AddressLike,
@@ -140,8 +133,6 @@ export interface ERC721 extends BaseContract {
140
133
  ], [
141
134
  boolean
142
135
  ], "view">;
143
- symbol: TypedContractMethod<[], [string], "view">;
144
- tokenURI: TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
145
136
  transferFrom: TypedContractMethod<[
146
137
  from: AddressLike,
147
138
  to: AddressLike,
@@ -164,7 +155,6 @@ export interface ERC721 extends BaseContract {
164
155
  ], [
165
156
  boolean
166
157
  ], "view">;
167
- getFunction(nameOrSignature: "name"): TypedContractMethod<[], [string], "view">;
168
158
  getFunction(nameOrSignature: "ownerOf"): TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
169
159
  getFunction(nameOrSignature: "safeTransferFrom(address,address,uint256)"): TypedContractMethod<[
170
160
  from: AddressLike,
@@ -188,8 +178,6 @@ export interface ERC721 extends BaseContract {
188
178
  void
189
179
  ], "nonpayable">;
190
180
  getFunction(nameOrSignature: "supportsInterface"): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
191
- getFunction(nameOrSignature: "symbol"): TypedContractMethod<[], [string], "view">;
192
- getFunction(nameOrSignature: "tokenURI"): TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
193
181
  getFunction(nameOrSignature: "transferFrom"): TypedContractMethod<[
194
182
  from: AddressLike,
195
183
  to: AddressLike,
@@ -1,14 +1,12 @@
1
1
  import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
2
- import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../../../common";
3
- export interface ERC20Interface extends Interface {
4
- getFunction(nameOrSignature: "allowance" | "approve" | "balanceOf" | "decimals" | "name" | "symbol" | "totalSupply" | "transfer" | "transferFrom"): FunctionFragment;
2
+ import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../../common";
3
+ export interface IERC20WithDecimalsInterface extends Interface {
4
+ getFunction(nameOrSignature: "allowance" | "approve" | "balanceOf" | "decimals" | "totalSupply" | "transfer" | "transferFrom"): FunctionFragment;
5
5
  getEvent(nameOrSignatureOrTopic: "Approval" | "Transfer"): EventFragment;
6
6
  encodeFunctionData(functionFragment: "allowance", values: [AddressLike, AddressLike]): string;
7
7
  encodeFunctionData(functionFragment: "approve", values: [AddressLike, BigNumberish]): string;
8
8
  encodeFunctionData(functionFragment: "balanceOf", values: [AddressLike]): string;
9
9
  encodeFunctionData(functionFragment: "decimals", values?: undefined): string;
10
- encodeFunctionData(functionFragment: "name", values?: undefined): string;
11
- encodeFunctionData(functionFragment: "symbol", values?: undefined): string;
12
10
  encodeFunctionData(functionFragment: "totalSupply", values?: undefined): string;
13
11
  encodeFunctionData(functionFragment: "transfer", values: [AddressLike, BigNumberish]): string;
14
12
  encodeFunctionData(functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish]): string;
@@ -16,8 +14,6 @@ export interface ERC20Interface extends Interface {
16
14
  decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
17
15
  decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
18
16
  decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result;
19
- decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
20
- decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result;
21
17
  decodeFunctionResult(functionFragment: "totalSupply", data: BytesLike): Result;
22
18
  decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result;
23
19
  decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
@@ -56,10 +52,10 @@ export declare namespace TransferEvent {
56
52
  type Log = TypedEventLog<Event>;
57
53
  type LogDescription = TypedLogDescription<Event>;
58
54
  }
59
- export interface ERC20 extends BaseContract {
60
- connect(runner?: ContractRunner | null): ERC20;
55
+ export interface IERC20WithDecimals extends BaseContract {
56
+ connect(runner?: ContractRunner | null): IERC20WithDecimals;
61
57
  waitForDeployment(): Promise<this>;
62
- interface: ERC20Interface;
58
+ interface: IERC20WithDecimalsInterface;
63
59
  queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
64
60
  queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
65
61
  on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
@@ -83,8 +79,6 @@ export interface ERC20 extends BaseContract {
83
79
  ], "nonpayable">;
84
80
  balanceOf: TypedContractMethod<[account: AddressLike], [bigint], "view">;
85
81
  decimals: TypedContractMethod<[], [bigint], "view">;
86
- name: TypedContractMethod<[], [string], "view">;
87
- symbol: TypedContractMethod<[], [string], "view">;
88
82
  totalSupply: TypedContractMethod<[], [bigint], "view">;
89
83
  transfer: TypedContractMethod<[
90
84
  to: AddressLike,
@@ -114,8 +108,6 @@ export interface ERC20 extends BaseContract {
114
108
  ], "nonpayable">;
115
109
  getFunction(nameOrSignature: "balanceOf"): TypedContractMethod<[account: AddressLike], [bigint], "view">;
116
110
  getFunction(nameOrSignature: "decimals"): TypedContractMethod<[], [bigint], "view">;
117
- getFunction(nameOrSignature: "name"): TypedContractMethod<[], [string], "view">;
118
- getFunction(nameOrSignature: "symbol"): TypedContractMethod<[], [string], "view">;
119
111
  getFunction(nameOrSignature: "totalSupply"): TypedContractMethod<[], [bigint], "view">;
120
112
  getFunction(nameOrSignature: "transfer"): TypedContractMethod<[
121
113
  to: AddressLike,
@@ -3,7 +3,7 @@ export { ISettings } from './internal/typechain-types/contracts/interfaces/ISett
3
3
  export { ITokenUtils } from './internal/typechain-types/contracts/interfaces/ITokenUtils';
4
4
  export { ISAFactory } from './internal/typechain-types/contracts/smart-account/interfaces/ISAFactory';
5
5
  export { ITacSmartAccount } from './internal/typechain-types/contracts/smart-account/interfaces/ITacSmartAccount';
6
- export { ERC20 } from './internal/typechain-types/@openzeppelin/contracts/token/ERC20/ERC20';
7
- export { ERC721 } from './internal/typechain-types/@openzeppelin/contracts/token/ERC721/ERC721';
6
+ export { IERC20WithDecimals } from './internal/typechain-types/contracts/interfaces/tokens/IERC20WithDecimals';
7
+ export { IERC721 } from './internal/typechain-types/@openzeppelin/contracts/token/ERC721/IERC721';
8
8
  export { ICrossChainLayerERC20 } from './internal/typechain-types/contracts/interfaces/tokens/ICrossChainLayerERC20';
9
9
  export { ICrossChainLayerERC721 } from './internal/typechain-types/contracts/interfaces/tokens/ICrossChainLayerERC721';
@@ -253,22 +253,11 @@ export declare const compilationArtifacts: {
253
253
  linkReferences: {};
254
254
  deployedLinkReferences: {};
255
255
  };
256
- ERC20: {
256
+ IERC20WithDecimals: {
257
257
  _format: string;
258
258
  contractName: string;
259
259
  sourceName: string;
260
260
  abi: ({
261
- inputs: {
262
- internalType: string;
263
- name: string;
264
- type: string;
265
- }[];
266
- name: string;
267
- type: string;
268
- anonymous?: undefined;
269
- outputs?: undefined;
270
- stateMutability?: undefined;
271
- } | {
272
261
  anonymous: boolean;
273
262
  inputs: {
274
263
  indexed: boolean;
@@ -301,22 +290,11 @@ export declare const compilationArtifacts: {
301
290
  linkReferences: {};
302
291
  deployedLinkReferences: {};
303
292
  };
304
- ERC721: {
293
+ IERC721: {
305
294
  _format: string;
306
295
  contractName: string;
307
296
  sourceName: string;
308
297
  abi: ({
309
- inputs: {
310
- internalType: string;
311
- name: string;
312
- type: string;
313
- }[];
314
- name: string;
315
- type: string;
316
- anonymous?: undefined;
317
- outputs?: undefined;
318
- stateMutability?: undefined;
319
- } | {
320
298
  anonymous: boolean;
321
299
  inputs: {
322
300
  indexed: boolean;
@@ -11,8 +11,8 @@ const ICrossChainLayerERC20_json_1 = __importDefault(require("./internal/artifac
11
11
  const ICrossChainLayerERC721_json_1 = __importDefault(require("./internal/artifacts/contracts/interfaces/tokens/ICrossChainLayerERC721.sol/ICrossChainLayerERC721.json"));
12
12
  const ISAFactory_json_1 = __importDefault(require("./internal/artifacts/contracts/smart-account/interfaces/ISAFactory.sol/ISAFactory.json"));
13
13
  const ITacSmartAccount_json_1 = __importDefault(require("./internal/artifacts/contracts/smart-account/interfaces/ITacSmartAccount.sol/ITacSmartAccount.json"));
14
- const ERC20_json_1 = __importDefault(require("./internal/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.json"));
15
- const ERC721_json_1 = __importDefault(require("./internal/artifacts/@openzeppelin/contracts/token/ERC721/ERC721.sol/ERC721.json"));
14
+ const IERC20WithDecimals_json_1 = __importDefault(require("./internal/artifacts/contracts/interfaces/tokens/IERC20WithDecimals.sol/IERC20WithDecimals.json"));
15
+ const IERC721_json_1 = __importDefault(require("./internal/artifacts/@openzeppelin/contracts/token/ERC721/IERC721.sol/IERC721.json"));
16
16
  exports.compilationArtifacts = {
17
17
  ICrossChainLayer: ICrossChainLayer_json_1.default,
18
18
  ISettings: ISettings_json_1.default,
@@ -21,6 +21,6 @@ exports.compilationArtifacts = {
21
21
  ICrossChainLayerERC721: ICrossChainLayerERC721_json_1.default,
22
22
  ISAFactory: ISAFactory_json_1.default,
23
23
  ITacSmartAccount: ITacSmartAccount_json_1.default,
24
- ERC20: ERC20_json_1.default,
25
- ERC721: ERC721_json_1.default,
24
+ IERC20WithDecimals: IERC20WithDecimals_json_1.default,
25
+ IERC721: IERC721_json_1.default,
26
26
  };
@@ -1,93 +1,32 @@
1
1
  {
2
2
  "_format": "hh-sol-artifact-1",
3
- "contractName": "ERC20",
4
- "sourceName": "@openzeppelin/contracts/token/ERC20/ERC20.sol",
3
+ "contractName": "IERC721",
4
+ "sourceName": "@openzeppelin/contracts/token/ERC721/IERC721.sol",
5
5
  "abi": [
6
6
  {
7
+ "anonymous": false,
7
8
  "inputs": [
8
9
  {
10
+ "indexed": true,
9
11
  "internalType": "address",
10
- "name": "spender",
12
+ "name": "owner",
11
13
  "type": "address"
12
14
  },
13
15
  {
14
- "internalType": "uint256",
15
- "name": "allowance",
16
- "type": "uint256"
17
- },
18
- {
19
- "internalType": "uint256",
20
- "name": "needed",
21
- "type": "uint256"
22
- }
23
- ],
24
- "name": "ERC20InsufficientAllowance",
25
- "type": "error"
26
- },
27
- {
28
- "inputs": [
29
- {
16
+ "indexed": true,
30
17
  "internalType": "address",
31
- "name": "sender",
18
+ "name": "approved",
32
19
  "type": "address"
33
20
  },
34
21
  {
22
+ "indexed": true,
35
23
  "internalType": "uint256",
36
- "name": "balance",
37
- "type": "uint256"
38
- },
39
- {
40
- "internalType": "uint256",
41
- "name": "needed",
24
+ "name": "tokenId",
42
25
  "type": "uint256"
43
26
  }
44
27
  ],
45
- "name": "ERC20InsufficientBalance",
46
- "type": "error"
47
- },
48
- {
49
- "inputs": [
50
- {
51
- "internalType": "address",
52
- "name": "approver",
53
- "type": "address"
54
- }
55
- ],
56
- "name": "ERC20InvalidApprover",
57
- "type": "error"
58
- },
59
- {
60
- "inputs": [
61
- {
62
- "internalType": "address",
63
- "name": "receiver",
64
- "type": "address"
65
- }
66
- ],
67
- "name": "ERC20InvalidReceiver",
68
- "type": "error"
69
- },
70
- {
71
- "inputs": [
72
- {
73
- "internalType": "address",
74
- "name": "sender",
75
- "type": "address"
76
- }
77
- ],
78
- "name": "ERC20InvalidSender",
79
- "type": "error"
80
- },
81
- {
82
- "inputs": [
83
- {
84
- "internalType": "address",
85
- "name": "spender",
86
- "type": "address"
87
- }
88
- ],
89
- "name": "ERC20InvalidSpender",
90
- "type": "error"
28
+ "name": "Approval",
29
+ "type": "event"
91
30
  },
92
31
  {
93
32
  "anonymous": false,
@@ -101,17 +40,17 @@
101
40
  {
102
41
  "indexed": true,
103
42
  "internalType": "address",
104
- "name": "spender",
43
+ "name": "operator",
105
44
  "type": "address"
106
45
  },
107
46
  {
108
47
  "indexed": false,
109
- "internalType": "uint256",
110
- "name": "value",
111
- "type": "uint256"
48
+ "internalType": "bool",
49
+ "name": "approved",
50
+ "type": "bool"
112
51
  }
113
52
  ],
114
- "name": "Approval",
53
+ "name": "ApprovalForAll",
115
54
  "type": "event"
116
55
  },
117
56
  {
@@ -130,9 +69,9 @@
130
69
  "type": "address"
131
70
  },
132
71
  {
133
- "indexed": false,
72
+ "indexed": true,
134
73
  "internalType": "uint256",
135
- "name": "value",
74
+ "name": "tokenId",
136
75
  "type": "uint256"
137
76
  }
138
77
  ],
@@ -143,20 +82,33 @@
143
82
  "inputs": [
144
83
  {
145
84
  "internalType": "address",
146
- "name": "owner",
85
+ "name": "to",
147
86
  "type": "address"
148
87
  },
88
+ {
89
+ "internalType": "uint256",
90
+ "name": "tokenId",
91
+ "type": "uint256"
92
+ }
93
+ ],
94
+ "name": "approve",
95
+ "outputs": [],
96
+ "stateMutability": "nonpayable",
97
+ "type": "function"
98
+ },
99
+ {
100
+ "inputs": [
149
101
  {
150
102
  "internalType": "address",
151
- "name": "spender",
103
+ "name": "owner",
152
104
  "type": "address"
153
105
  }
154
106
  ],
155
- "name": "allowance",
107
+ "name": "balanceOf",
156
108
  "outputs": [
157
109
  {
158
110
  "internalType": "uint256",
159
- "name": "",
111
+ "name": "balance",
160
112
  "type": "uint256"
161
113
  }
162
114
  ],
@@ -165,113 +117,144 @@
165
117
  },
166
118
  {
167
119
  "inputs": [
168
- {
169
- "internalType": "address",
170
- "name": "spender",
171
- "type": "address"
172
- },
173
120
  {
174
121
  "internalType": "uint256",
175
- "name": "value",
122
+ "name": "tokenId",
176
123
  "type": "uint256"
177
124
  }
178
125
  ],
179
- "name": "approve",
126
+ "name": "getApproved",
180
127
  "outputs": [
181
128
  {
182
- "internalType": "bool",
183
- "name": "",
184
- "type": "bool"
129
+ "internalType": "address",
130
+ "name": "operator",
131
+ "type": "address"
185
132
  }
186
133
  ],
187
- "stateMutability": "nonpayable",
134
+ "stateMutability": "view",
188
135
  "type": "function"
189
136
  },
190
137
  {
191
138
  "inputs": [
192
139
  {
193
140
  "internalType": "address",
194
- "name": "account",
141
+ "name": "owner",
142
+ "type": "address"
143
+ },
144
+ {
145
+ "internalType": "address",
146
+ "name": "operator",
195
147
  "type": "address"
196
148
  }
197
149
  ],
198
- "name": "balanceOf",
150
+ "name": "isApprovedForAll",
199
151
  "outputs": [
200
152
  {
201
- "internalType": "uint256",
153
+ "internalType": "bool",
202
154
  "name": "",
203
- "type": "uint256"
155
+ "type": "bool"
204
156
  }
205
157
  ],
206
158
  "stateMutability": "view",
207
159
  "type": "function"
208
160
  },
209
161
  {
210
- "inputs": [],
211
- "name": "decimals",
212
- "outputs": [
162
+ "inputs": [
213
163
  {
214
- "internalType": "uint8",
215
- "name": "",
216
- "type": "uint8"
164
+ "internalType": "uint256",
165
+ "name": "tokenId",
166
+ "type": "uint256"
217
167
  }
218
168
  ],
219
- "stateMutability": "view",
220
- "type": "function"
221
- },
222
- {
223
- "inputs": [],
224
- "name": "name",
169
+ "name": "ownerOf",
225
170
  "outputs": [
226
171
  {
227
- "internalType": "string",
228
- "name": "",
229
- "type": "string"
172
+ "internalType": "address",
173
+ "name": "owner",
174
+ "type": "address"
230
175
  }
231
176
  ],
232
177
  "stateMutability": "view",
233
178
  "type": "function"
234
179
  },
235
180
  {
236
- "inputs": [],
237
- "name": "symbol",
238
- "outputs": [
181
+ "inputs": [
239
182
  {
240
- "internalType": "string",
241
- "name": "",
242
- "type": "string"
183
+ "internalType": "address",
184
+ "name": "from",
185
+ "type": "address"
186
+ },
187
+ {
188
+ "internalType": "address",
189
+ "name": "to",
190
+ "type": "address"
191
+ },
192
+ {
193
+ "internalType": "uint256",
194
+ "name": "tokenId",
195
+ "type": "uint256"
243
196
  }
244
197
  ],
245
- "stateMutability": "view",
198
+ "name": "safeTransferFrom",
199
+ "outputs": [],
200
+ "stateMutability": "nonpayable",
246
201
  "type": "function"
247
202
  },
248
203
  {
249
- "inputs": [],
250
- "name": "totalSupply",
251
- "outputs": [
204
+ "inputs": [
205
+ {
206
+ "internalType": "address",
207
+ "name": "from",
208
+ "type": "address"
209
+ },
210
+ {
211
+ "internalType": "address",
212
+ "name": "to",
213
+ "type": "address"
214
+ },
252
215
  {
253
216
  "internalType": "uint256",
254
- "name": "",
217
+ "name": "tokenId",
255
218
  "type": "uint256"
219
+ },
220
+ {
221
+ "internalType": "bytes",
222
+ "name": "data",
223
+ "type": "bytes"
256
224
  }
257
225
  ],
258
- "stateMutability": "view",
226
+ "name": "safeTransferFrom",
227
+ "outputs": [],
228
+ "stateMutability": "nonpayable",
259
229
  "type": "function"
260
230
  },
261
231
  {
262
232
  "inputs": [
263
233
  {
264
234
  "internalType": "address",
265
- "name": "to",
235
+ "name": "operator",
266
236
  "type": "address"
267
237
  },
268
238
  {
269
- "internalType": "uint256",
270
- "name": "value",
271
- "type": "uint256"
239
+ "internalType": "bool",
240
+ "name": "approved",
241
+ "type": "bool"
272
242
  }
273
243
  ],
274
- "name": "transfer",
244
+ "name": "setApprovalForAll",
245
+ "outputs": [],
246
+ "stateMutability": "nonpayable",
247
+ "type": "function"
248
+ },
249
+ {
250
+ "inputs": [
251
+ {
252
+ "internalType": "bytes4",
253
+ "name": "interfaceId",
254
+ "type": "bytes4"
255
+ }
256
+ ],
257
+ "name": "supportsInterface",
275
258
  "outputs": [
276
259
  {
277
260
  "internalType": "bool",
@@ -279,7 +262,7 @@
279
262
  "type": "bool"
280
263
  }
281
264
  ],
282
- "stateMutability": "nonpayable",
265
+ "stateMutability": "view",
283
266
  "type": "function"
284
267
  },
285
268
  {
@@ -296,18 +279,12 @@
296
279
  },
297
280
  {
298
281
  "internalType": "uint256",
299
- "name": "value",
282
+ "name": "tokenId",
300
283
  "type": "uint256"
301
284
  }
302
285
  ],
303
286
  "name": "transferFrom",
304
- "outputs": [
305
- {
306
- "internalType": "bool",
307
- "name": "",
308
- "type": "bool"
309
- }
310
- ],
287
+ "outputs": [],
311
288
  "stateMutability": "nonpayable",
312
289
  "type": "function"
313
290
  }