Skip to content

Commit 590d889

Browse files
author
Hayden
authored
feature: GMS-999: update royalty allowlist to operator allowlist (#780)
1 parent 5a474f4 commit 590d889

File tree

9 files changed

+380
-444
lines changed

9 files changed

+380
-444
lines changed

CHANGELOG.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Added
1111

1212
- @imtbl/passport: Added support for `eth_getCode` to Passport zkEvm provider.
13-
- @imtbl/erc721: renamed from @imtbl/erc721-hybrid-permissioned-mintable. Renamed various mint methods to match with preset methods released in zkevm-contracts v1.0.8. Added `safeBurn` and `safeBurnBatch` methods released in zkevm-contracts v1.1.0
14-
- @imtbl/erc721-mint-by-id: renamed from @imtbl/erc721-permissioned-mintable. Added `safeBurn` and `safeBurnBatch` methods released in zkevm-contracts v1.1.0
13+
- @imtbl/erc721: Added `safeBurn` and `safeBurnBatch` methods released in zkevm-contracts v1.1.0
14+
- @imtbl/erc721-mint-by-id: Added `safeBurn` and `safeBurnBatch` methods released in zkevm-contracts v1.1.0
1515

1616
### Changed
1717

@@ -21,6 +21,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2121

2222
- @imtbl/immutablex-client: Some request/response types were not being exported.
2323

24+
### Changed
25+
26+
- @imtbl/erc721: Renamed from @imtbl/erc721-hybrid-permissioned-mintable.
27+
- @imtbl/erc721: Renamed various mint methods to match with preset methods released in zkevm-contracts v1.0.8.
28+
- @imtbl/erc721: Renamed all instances of "Royalty Allowlist" to a more generic "Operator Allowlist"
29+
- @imtbl/erc721-mint-by-id: Renamed from @imtbl/erc721-permissioned-mintable.
30+
- @imtbl/erc721-mint-by-id: Renamed all instances of "Royalty Allowlist" to a more generic "Operator Allowlist"
31+
2432
## [0.13.0] - 2023-08-22
2533

2634
### Added

packages/erc721-mint-by-id/src/erc721-mint-by-id.ts

Lines changed: 30 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ import {
1111
ImmutableERC721MintByID,
1212
ImmutableERC721MintByID__factory,
1313
} from '@imtbl/contracts';
14-
import {
15-
ImmutableERC721Base,
16-
} from '@imtbl/contracts/dist/typechain/types/ImmutableERC721MintByID';
14+
import { ImmutableERC721Base } from '@imtbl/contracts/dist/typechain/types/ImmutableERC721MintByID';
1715
import { PromiseOrValue } from '@imtbl/contracts/dist/typechain/types/common';
1816

1917
// Struct for specifying token IDs to mint to an address.
@@ -199,13 +197,13 @@ export class ERC721MintByID {
199197
}
200198

201199
/**
202-
* @returns the royalty allowlist as a string.
200+
* @returns the operator allowlist as a string.
203201
*/
204-
public async royaltyAllowlist(
202+
public async operatorAllowlist(
205203
provider: Provider,
206204
overrides: CallOverrides = {},
207205
): Promise<string> {
208-
return await this.contract.connect(provider).royaltyAllowlist(overrides);
206+
return await this.contract.connect(provider).operatorAllowlist(overrides);
209207
}
210208

211209
/**
@@ -295,7 +293,10 @@ export class ERC721MintByID {
295293
from?: PromiseOrValue<string>;
296294
} = {},
297295
): Promise<PopulatedTransaction> {
298-
return await this.contract.populateTransaction.burnBatch(tokenIds, overrides);
296+
return await this.contract.populateTransaction.burnBatch(
297+
tokenIds,
298+
overrides,
299+
);
299300
}
300301

301302
/**
@@ -352,7 +353,10 @@ export class ERC721MintByID {
352353
from?: PromiseOrValue<string>;
353354
} = {},
354355
): Promise<PopulatedTransaction> {
355-
return await this.contract.populateTransaction.safeMintBatch(mints, overrides);
356+
return await this.contract.populateTransaction.safeMintBatch(
357+
mints,
358+
overrides,
359+
);
356360
}
357361

358362
/**
@@ -365,7 +369,11 @@ export class ERC721MintByID {
365369
from?: PromiseOrValue<string>;
366370
} = {},
367371
): Promise<PopulatedTransaction> {
368-
return await this.contract.populateTransaction.safeBurn(owner, tokenId, overrides);
372+
return await this.contract.populateTransaction.safeBurn(
373+
owner,
374+
tokenId,
375+
overrides,
376+
);
369377
}
370378

371379
/**
@@ -377,7 +385,10 @@ export class ERC721MintByID {
377385
from?: PromiseOrValue<string>;
378386
} = {},
379387
): Promise<PopulatedTransaction> {
380-
return await this.contract.populateTransaction.safeBurnBatch(burns, overrides);
388+
return await this.contract.populateTransaction.safeBurnBatch(
389+
burns,
390+
overrides,
391+
);
381392
}
382393

383394
/**
@@ -438,7 +449,10 @@ export class ERC721MintByID {
438449
from?: PromiseOrValue<string>;
439450
} = {},
440451
): Promise<PopulatedTransaction> {
441-
return await this.contract.populateTransaction.safeTransferFromBatch(transfers, overrides);
452+
return await this.contract.populateTransaction.safeTransferFromBatch(
453+
transfers,
454+
overrides,
455+
);
442456
}
443457

444458
/**
@@ -577,16 +591,16 @@ export class ERC721MintByID {
577591
}
578592

579593
/**
580-
* @returns a populated transaction for the setRoyaltyAllowlistRegistry contract function
594+
* @returns a populated transaction for the setOperatorAllowlistRegistry contract function
581595
*/
582-
public async populateSetRoyaltyAllowlistRegistry(
583-
_royaltyAllowlist: PromiseOrValue<string>,
596+
public async populateSetOperatorAllowlistRegistry(
597+
_operatorAllowlist: PromiseOrValue<string>,
584598
overrides: Overrides & {
585599
from?: PromiseOrValue<string>;
586600
} = {},
587601
): Promise<PopulatedTransaction> {
588-
return await this.contract.populateTransaction.setRoyaltyAllowlistRegistry(
589-
_royaltyAllowlist,
602+
return await this.contract.populateTransaction.setOperatorAllowlistRegistry(
603+
_operatorAllowlist,
590604
overrides,
591605
);
592606
}

0 commit comments

Comments
 (0)