Skip to content

Commit d288fc5

Browse files
authored
Merge pull request #48 from trader-xyz/feat/typechain-v8
Updates TypeChain to v8 and regenerate contracts
2 parents 992cf9c + e8d96eb commit d288fc5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+896
-310
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@
4949
],
5050
"devDependencies": {
5151
"@size-limit/preset-small-lib": "7.0.8",
52-
"@typechain/ethers-v5": "^9.0.0",
52+
"@typechain/ethers-v5": "^10.0.0",
5353
"@types/lodash": "^4.14.180",
5454
"@types/uuid": "^8.3.4",
5555
"husky": "^7.0.2",
5656
"prettier": "^2.6.0",
5757
"size-limit": "7.0.8",
5858
"tsdx": "^0.14.1",
5959
"tslib": "^2.3.1",
60-
"typechain": "^7.0.1",
60+
"typechain": "^8.0.0",
6161
"typescript": "^4.6.2"
6262
},
6363
"dependencies": {

src/contracts/ERC1155.ts

Lines changed: 46 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* Autogenerated file. Do not edit manually. */
22
/* tslint:disable */
33
/* eslint-disable */
4-
import {
4+
import type {
55
BaseContract,
66
BigNumber,
77
BigNumberish,
@@ -13,12 +13,20 @@ import {
1313
Signer,
1414
utils,
1515
} from 'ethers';
16-
import { FunctionFragment, Result, EventFragment } from '@ethersproject/abi';
17-
import { Listener, Provider } from '@ethersproject/providers';
18-
import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from './common';
16+
import type {
17+
FunctionFragment,
18+
Result,
19+
EventFragment,
20+
} from '@ethersproject/abi';
21+
import type { Listener, Provider } from '@ethersproject/providers';
22+
import type {
23+
TypedEventFilter,
24+
TypedEvent,
25+
TypedListener,
26+
OnEvent,
27+
} from './common';
1928

2029
export interface ERC1155Interface extends utils.Interface {
21-
contractName: 'ERC1155';
2230
functions: {
2331
'balanceOf(address,uint256)': FunctionFragment;
2432
'balanceOfBatch(address[],uint256[])': FunctionFragment;
@@ -29,6 +37,17 @@ export interface ERC1155Interface extends utils.Interface {
2937
'supportsInterface(bytes4)': FunctionFragment;
3038
};
3139

40+
getFunction(
41+
nameOrSignatureOrTopic:
42+
| 'balanceOf'
43+
| 'balanceOfBatch'
44+
| 'isApprovedForAll'
45+
| 'safeBatchTransferFrom'
46+
| 'safeTransferFrom'
47+
| 'setApprovalForAll'
48+
| 'supportsInterface'
49+
): FunctionFragment;
50+
3251
encodeFunctionData(
3352
functionFragment: 'balanceOf',
3453
values: [string, BigNumberish]
@@ -95,41 +114,47 @@ export interface ERC1155Interface extends utils.Interface {
95114
getEvent(nameOrSignatureOrTopic: 'TransferSingle'): EventFragment;
96115
}
97116

117+
export interface ApprovalForAllEventObject {
118+
_owner: string;
119+
_operator: string;
120+
_approved: boolean;
121+
}
98122
export type ApprovalForAllEvent = TypedEvent<
99123
[string, string, boolean],
100-
{ _owner: string; _operator: string; _approved: boolean }
124+
ApprovalForAllEventObject
101125
>;
102126

103127
export type ApprovalForAllEventFilter = TypedEventFilter<ApprovalForAllEvent>;
104128

129+
export interface TransferBatchEventObject {
130+
_operator: string;
131+
_from: string;
132+
_to: string;
133+
_ids: BigNumber[];
134+
_amounts: BigNumber[];
135+
}
105136
export type TransferBatchEvent = TypedEvent<
106137
[string, string, string, BigNumber[], BigNumber[]],
107-
{
108-
_operator: string;
109-
_from: string;
110-
_to: string;
111-
_ids: BigNumber[];
112-
_amounts: BigNumber[];
113-
}
138+
TransferBatchEventObject
114139
>;
115140

116141
export type TransferBatchEventFilter = TypedEventFilter<TransferBatchEvent>;
117142

143+
export interface TransferSingleEventObject {
144+
_operator: string;
145+
_from: string;
146+
_to: string;
147+
_id: BigNumber;
148+
_amount: BigNumber;
149+
}
118150
export type TransferSingleEvent = TypedEvent<
119151
[string, string, string, BigNumber, BigNumber],
120-
{
121-
_operator: string;
122-
_from: string;
123-
_to: string;
124-
_id: BigNumber;
125-
_amount: BigNumber;
126-
}
152+
TransferSingleEventObject
127153
>;
128154

129155
export type TransferSingleEventFilter = TypedEventFilter<TransferSingleEvent>;
130156

131157
export interface ERC1155 extends BaseContract {
132-
contractName: 'ERC1155';
133158
connect(signerOrProvider: Signer | Provider | string): this;
134159
attach(addressOrName: string): this;
135160
deployed(): Promise<this>;

0 commit comments

Comments
 (0)