@lukso/lsp8-contracts 0.15.0-rc.0 → 0.15.0-rc.4
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/README.md +6 -0
- package/artifacts/ILSP8IdentifiableDigitalAsset.json +602 -0
- package/artifacts/LSP8Burnable.json +954 -0
- package/artifacts/LSP8BurnableInitAbstract.json +967 -0
- package/artifacts/LSP8Enumerable.json +955 -0
- package/artifacts/LSP8EnumerableInitAbstract.json +968 -0
- package/artifacts/LSP8Mintable.json +2 -2
- package/artifacts/LSP8MintableInit.json +2 -2
- package/compatibility-abis/LSP8IdentifiableDigitalAsset-v0.12.0.json +748 -0
- package/compatibility-abis/LSP8IdentifiableDigitalAsset-v0.13.0.json +899 -0
- package/compatibility-abis/LSP8IdentifiableDigitalAsset-v0.14.0.json +899 -0
- package/compatibility-abis/README.md +9 -0
- package/contracts/ILSP8IdentifiableDigitalAsset.sol +2 -2
- package/package.json +9 -8
- package/types/{LSP8IdentifiableDigitalAsset.ts → contracts/ILSP8IdentifiableDigitalAsset.ts} +9 -81
- package/types/{LSP8Mintable.ts → contracts/extensions/LSP8Burnable.ts} +24 -24
- package/types/{LSP8IdentifiableDigitalAssetInitAbstract.ts → contracts/extensions/LSP8BurnableInitAbstract.ts} +24 -8
- package/types/{LSP8CappedSupply.ts → contracts/extensions/LSP8Enumerable.ts} +17 -19
- package/types/{LSP8CappedSupplyInitAbstract.ts → contracts/extensions/LSP8EnumerableInitAbstract.ts} +16 -19
- package/types/index.ts +9738 -16
- package/types/LSP8MintableInit.ts +0 -860
@@ -0,0 +1,9 @@
|
|
1
|
+
# Compatibility ABIs for LS8
|
2
|
+
|
3
|
+
This folder contains historical ABIs from previous release versions.
|
4
|
+
|
5
|
+
- `v0.14.0`: LSP8 interface ID was `0x3a271706`.
|
6
|
+
- `v0.13.0`: LSP8 interface ID was `0xecad9f75`.
|
7
|
+
- `v0.12.0`: LSP8 interface ID was `0x30dc5278`.
|
8
|
+
|
9
|
+
This is to enable dApps and projects to be backward compatible in their interfaces to display and interact with LSP8 token contracts deployed with these old versions, by consuming their old ABIs.
|
@@ -92,9 +92,9 @@ interface ILSP8IdentifiableDigitalAsset is IERC165, IERC725Y {
|
|
92
92
|
function balanceOf(address tokenOwner) external view returns (uint256);
|
93
93
|
|
94
94
|
/**
|
95
|
-
* @dev Returns the
|
95
|
+
* @dev Returns the address that owns a given `tokenId`.
|
96
96
|
*
|
97
|
-
* @param tokenId
|
97
|
+
* @param tokenId The token ID to query the owner for.
|
98
98
|
* @return The owner address of the given `tokenId`.
|
99
99
|
*
|
100
100
|
* @custom:requirements `tokenId` must exist.
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lukso/lsp8-contracts",
|
3
|
-
"version": "0.15.0-rc.
|
3
|
+
"version": "0.15.0-rc.4",
|
4
4
|
"description": "Package for the LSP8 Identifiable Digital Asset standard",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"author": "",
|
@@ -20,6 +20,7 @@
|
|
20
20
|
"contracts/**/*.sol",
|
21
21
|
"!contracts/Mocks/**/*.sol",
|
22
22
|
"artifacts/*.json",
|
23
|
+
"compatibility-abis",
|
23
24
|
"dist",
|
24
25
|
"types",
|
25
26
|
"!types/factories",
|
@@ -36,21 +37,21 @@
|
|
36
37
|
"Solidity"
|
37
38
|
],
|
38
39
|
"scripts": {
|
39
|
-
"package": "hardhat prepare-package",
|
40
40
|
"build": "hardhat compile --show-stack-traces",
|
41
41
|
"build:js": "unbuild",
|
42
|
-
"build:types": "npx
|
42
|
+
"build:types": "npx wagmi generate",
|
43
43
|
"clean": "hardhat clean && rm -Rf dist/",
|
44
44
|
"format": "prettier --write .",
|
45
45
|
"lint": "eslint . --ext .ts,.js",
|
46
|
-
"lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'"
|
46
|
+
"lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'",
|
47
|
+
"package": "hardhat prepare-package"
|
47
48
|
},
|
48
49
|
"dependencies": {
|
49
50
|
"@erc725/smart-contracts": "^7.0.0",
|
50
51
|
"@openzeppelin/contracts": "^4.9.3",
|
51
|
-
"@lukso/lsp1-contracts": "
|
52
|
-
"@lukso/lsp2-contracts": "
|
53
|
-
"@lukso/lsp4-contracts": "
|
54
|
-
"@lukso/lsp17contractextension-contracts": "
|
52
|
+
"@lukso/lsp1-contracts": "~0.15.0-rc.1",
|
53
|
+
"@lukso/lsp2-contracts": "~0.15.0-rc.1",
|
54
|
+
"@lukso/lsp4-contracts": "~0.15.0-rc.1",
|
55
|
+
"@lukso/lsp17contractextension-contracts": "~0.15.0-rc.1"
|
55
56
|
}
|
56
57
|
}
|
package/types/{LSP8IdentifiableDigitalAsset.ts → contracts/ILSP8IdentifiableDigitalAsset.ts}
RENAMED
@@ -20,9 +20,9 @@ import type {
|
|
20
20
|
TypedLogDescription,
|
21
21
|
TypedListener,
|
22
22
|
TypedContractMethod,
|
23
|
-
} from "
|
23
|
+
} from "../common";
|
24
24
|
|
25
|
-
export interface
|
25
|
+
export interface ILSP8IdentifiableDigitalAssetInterface extends Interface {
|
26
26
|
getFunction(
|
27
27
|
nameOrSignature:
|
28
28
|
| "authorizeOperator"
|
@@ -34,8 +34,6 @@ export interface LSP8IdentifiableDigitalAssetInterface extends Interface {
|
|
34
34
|
| "getDataForTokenId"
|
35
35
|
| "getOperatorsOf"
|
36
36
|
| "isOperatorFor"
|
37
|
-
| "owner"
|
38
|
-
| "renounceOwnership"
|
39
37
|
| "revokeOperator"
|
40
38
|
| "setData"
|
41
39
|
| "setDataBatch"
|
@@ -47,7 +45,6 @@ export interface LSP8IdentifiableDigitalAssetInterface extends Interface {
|
|
47
45
|
| "totalSupply"
|
48
46
|
| "transfer"
|
49
47
|
| "transferBatch"
|
50
|
-
| "transferOwnership"
|
51
48
|
): FunctionFragment;
|
52
49
|
|
53
50
|
getEvent(
|
@@ -55,7 +52,6 @@ export interface LSP8IdentifiableDigitalAssetInterface extends Interface {
|
|
55
52
|
| "DataChanged"
|
56
53
|
| "OperatorAuthorizationChanged"
|
57
54
|
| "OperatorRevoked"
|
58
|
-
| "OwnershipTransferred"
|
59
55
|
| "TokenIdDataChanged"
|
60
56
|
| "Transfer"
|
61
57
|
): EventFragment;
|
@@ -93,11 +89,6 @@ export interface LSP8IdentifiableDigitalAssetInterface extends Interface {
|
|
93
89
|
functionFragment: "isOperatorFor",
|
94
90
|
values: [AddressLike, BytesLike]
|
95
91
|
): string;
|
96
|
-
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
97
|
-
encodeFunctionData(
|
98
|
-
functionFragment: "renounceOwnership",
|
99
|
-
values?: undefined
|
100
|
-
): string;
|
101
92
|
encodeFunctionData(
|
102
93
|
functionFragment: "revokeOperator",
|
103
94
|
values: [AddressLike, BytesLike, boolean, BytesLike]
|
@@ -142,10 +133,6 @@ export interface LSP8IdentifiableDigitalAssetInterface extends Interface {
|
|
142
133
|
functionFragment: "transferBatch",
|
143
134
|
values: [AddressLike[], AddressLike[], BytesLike[], boolean[], BytesLike[]]
|
144
135
|
): string;
|
145
|
-
encodeFunctionData(
|
146
|
-
functionFragment: "transferOwnership",
|
147
|
-
values: [AddressLike]
|
148
|
-
): string;
|
149
136
|
|
150
137
|
decodeFunctionResult(
|
151
138
|
functionFragment: "authorizeOperator",
|
@@ -174,11 +161,6 @@ export interface LSP8IdentifiableDigitalAssetInterface extends Interface {
|
|
174
161
|
functionFragment: "isOperatorFor",
|
175
162
|
data: BytesLike
|
176
163
|
): Result;
|
177
|
-
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
178
|
-
decodeFunctionResult(
|
179
|
-
functionFragment: "renounceOwnership",
|
180
|
-
data: BytesLike
|
181
|
-
): Result;
|
182
164
|
decodeFunctionResult(
|
183
165
|
functionFragment: "revokeOperator",
|
184
166
|
data: BytesLike
|
@@ -214,10 +196,6 @@ export interface LSP8IdentifiableDigitalAssetInterface extends Interface {
|
|
214
196
|
functionFragment: "transferBatch",
|
215
197
|
data: BytesLike
|
216
198
|
): Result;
|
217
|
-
decodeFunctionResult(
|
218
|
-
functionFragment: "transferOwnership",
|
219
|
-
data: BytesLike
|
220
|
-
): Result;
|
221
199
|
}
|
222
200
|
|
223
201
|
export namespace DataChangedEvent {
|
@@ -286,19 +264,6 @@ export namespace OperatorRevokedEvent {
|
|
286
264
|
export type LogDescription = TypedLogDescription<Event>;
|
287
265
|
}
|
288
266
|
|
289
|
-
export namespace OwnershipTransferredEvent {
|
290
|
-
export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
|
291
|
-
export type OutputTuple = [previousOwner: string, newOwner: string];
|
292
|
-
export interface OutputObject {
|
293
|
-
previousOwner: string;
|
294
|
-
newOwner: string;
|
295
|
-
}
|
296
|
-
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
297
|
-
export type Filter = TypedDeferredTopicFilter<Event>;
|
298
|
-
export type Log = TypedEventLog<Event>;
|
299
|
-
export type LogDescription = TypedLogDescription<Event>;
|
300
|
-
}
|
301
|
-
|
302
267
|
export namespace TokenIdDataChangedEvent {
|
303
268
|
export type InputTuple = [
|
304
269
|
tokenId: BytesLike,
|
@@ -352,11 +317,11 @@ export namespace TransferEvent {
|
|
352
317
|
export type LogDescription = TypedLogDescription<Event>;
|
353
318
|
}
|
354
319
|
|
355
|
-
export interface
|
356
|
-
connect(runner?: ContractRunner | null):
|
320
|
+
export interface ILSP8IdentifiableDigitalAsset extends BaseContract {
|
321
|
+
connect(runner?: ContractRunner | null): ILSP8IdentifiableDigitalAsset;
|
357
322
|
waitForDeployment(): Promise<this>;
|
358
323
|
|
359
|
-
interface:
|
324
|
+
interface: ILSP8IdentifiableDigitalAssetInterface;
|
360
325
|
|
361
326
|
queryFilter<TCEvent extends TypedContractEvent>(
|
362
327
|
event: TCEvent,
|
@@ -424,13 +389,13 @@ export interface LSP8IdentifiableDigitalAsset extends BaseContract {
|
|
424
389
|
getDataBatchForTokenIds: TypedContractMethod<
|
425
390
|
[tokenIds: BytesLike[], dataKeys: BytesLike[]],
|
426
391
|
[string[]],
|
427
|
-
"
|
392
|
+
"nonpayable"
|
428
393
|
>;
|
429
394
|
|
430
395
|
getDataForTokenId: TypedContractMethod<
|
431
396
|
[tokenId: BytesLike, dataKey: BytesLike],
|
432
397
|
[string],
|
433
|
-
"
|
398
|
+
"nonpayable"
|
434
399
|
>;
|
435
400
|
|
436
401
|
getOperatorsOf: TypedContractMethod<[tokenId: BytesLike], [string[]], "view">;
|
@@ -441,10 +406,6 @@ export interface LSP8IdentifiableDigitalAsset extends BaseContract {
|
|
441
406
|
"view"
|
442
407
|
>;
|
443
408
|
|
444
|
-
owner: TypedContractMethod<[], [string], "view">;
|
445
|
-
|
446
|
-
renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
|
447
|
-
|
448
409
|
revokeOperator: TypedContractMethod<
|
449
410
|
[
|
450
411
|
operator: AddressLike,
|
@@ -520,12 +481,6 @@ export interface LSP8IdentifiableDigitalAsset extends BaseContract {
|
|
520
481
|
"nonpayable"
|
521
482
|
>;
|
522
483
|
|
523
|
-
transferOwnership: TypedContractMethod<
|
524
|
-
[newOwner: AddressLike],
|
525
|
-
[void],
|
526
|
-
"nonpayable"
|
527
|
-
>;
|
528
|
-
|
529
484
|
getFunction<T extends ContractMethod = ContractMethod>(
|
530
485
|
key: string | FunctionFragment
|
531
486
|
): T;
|
@@ -558,14 +513,14 @@ export interface LSP8IdentifiableDigitalAsset extends BaseContract {
|
|
558
513
|
): TypedContractMethod<
|
559
514
|
[tokenIds: BytesLike[], dataKeys: BytesLike[]],
|
560
515
|
[string[]],
|
561
|
-
"
|
516
|
+
"nonpayable"
|
562
517
|
>;
|
563
518
|
getFunction(
|
564
519
|
nameOrSignature: "getDataForTokenId"
|
565
520
|
): TypedContractMethod<
|
566
521
|
[tokenId: BytesLike, dataKey: BytesLike],
|
567
522
|
[string],
|
568
|
-
"
|
523
|
+
"nonpayable"
|
569
524
|
>;
|
570
525
|
getFunction(
|
571
526
|
nameOrSignature: "getOperatorsOf"
|
@@ -577,12 +532,6 @@ export interface LSP8IdentifiableDigitalAsset extends BaseContract {
|
|
577
532
|
[boolean],
|
578
533
|
"view"
|
579
534
|
>;
|
580
|
-
getFunction(
|
581
|
-
nameOrSignature: "owner"
|
582
|
-
): TypedContractMethod<[], [string], "view">;
|
583
|
-
getFunction(
|
584
|
-
nameOrSignature: "renounceOwnership"
|
585
|
-
): TypedContractMethod<[], [void], "nonpayable">;
|
586
535
|
getFunction(
|
587
536
|
nameOrSignature: "revokeOperator"
|
588
537
|
): TypedContractMethod<
|
@@ -661,9 +610,6 @@ export interface LSP8IdentifiableDigitalAsset extends BaseContract {
|
|
661
610
|
[void],
|
662
611
|
"nonpayable"
|
663
612
|
>;
|
664
|
-
getFunction(
|
665
|
-
nameOrSignature: "transferOwnership"
|
666
|
-
): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
|
667
613
|
|
668
614
|
getEvent(
|
669
615
|
key: "DataChanged"
|
@@ -686,13 +632,6 @@ export interface LSP8IdentifiableDigitalAsset extends BaseContract {
|
|
686
632
|
OperatorRevokedEvent.OutputTuple,
|
687
633
|
OperatorRevokedEvent.OutputObject
|
688
634
|
>;
|
689
|
-
getEvent(
|
690
|
-
key: "OwnershipTransferred"
|
691
|
-
): TypedContractEvent<
|
692
|
-
OwnershipTransferredEvent.InputTuple,
|
693
|
-
OwnershipTransferredEvent.OutputTuple,
|
694
|
-
OwnershipTransferredEvent.OutputObject
|
695
|
-
>;
|
696
635
|
getEvent(
|
697
636
|
key: "TokenIdDataChanged"
|
698
637
|
): TypedContractEvent<
|
@@ -742,17 +681,6 @@ export interface LSP8IdentifiableDigitalAsset extends BaseContract {
|
|
742
681
|
OperatorRevokedEvent.OutputObject
|
743
682
|
>;
|
744
683
|
|
745
|
-
"OwnershipTransferred(address,address)": TypedContractEvent<
|
746
|
-
OwnershipTransferredEvent.InputTuple,
|
747
|
-
OwnershipTransferredEvent.OutputTuple,
|
748
|
-
OwnershipTransferredEvent.OutputObject
|
749
|
-
>;
|
750
|
-
OwnershipTransferred: TypedContractEvent<
|
751
|
-
OwnershipTransferredEvent.InputTuple,
|
752
|
-
OwnershipTransferredEvent.OutputTuple,
|
753
|
-
OwnershipTransferredEvent.OutputObject
|
754
|
-
>;
|
755
|
-
|
756
684
|
"TokenIdDataChanged(bytes32,bytes32,bytes)": TypedContractEvent<
|
757
685
|
TokenIdDataChangedEvent.InputTuple,
|
758
686
|
TokenIdDataChangedEvent.OutputTuple,
|
@@ -20,21 +20,21 @@ import type {
|
|
20
20
|
TypedLogDescription,
|
21
21
|
TypedListener,
|
22
22
|
TypedContractMethod,
|
23
|
-
} from "
|
23
|
+
} from "../../common";
|
24
24
|
|
25
|
-
export interface
|
25
|
+
export interface LSP8BurnableInterface extends Interface {
|
26
26
|
getFunction(
|
27
27
|
nameOrSignature:
|
28
28
|
| "authorizeOperator"
|
29
29
|
| "balanceOf"
|
30
30
|
| "batchCalls"
|
31
|
+
| "burn"
|
31
32
|
| "getData"
|
32
33
|
| "getDataBatch"
|
33
34
|
| "getDataBatchForTokenIds"
|
34
35
|
| "getDataForTokenId"
|
35
36
|
| "getOperatorsOf"
|
36
37
|
| "isOperatorFor"
|
37
|
-
| "mint"
|
38
38
|
| "owner"
|
39
39
|
| "renounceOwnership"
|
40
40
|
| "revokeOperator"
|
@@ -73,6 +73,10 @@ export interface LSP8MintableInterface extends Interface {
|
|
73
73
|
functionFragment: "batchCalls",
|
74
74
|
values: [BytesLike[]]
|
75
75
|
): string;
|
76
|
+
encodeFunctionData(
|
77
|
+
functionFragment: "burn",
|
78
|
+
values: [BytesLike, BytesLike]
|
79
|
+
): string;
|
76
80
|
encodeFunctionData(functionFragment: "getData", values: [BytesLike]): string;
|
77
81
|
encodeFunctionData(
|
78
82
|
functionFragment: "getDataBatch",
|
@@ -94,10 +98,6 @@ export interface LSP8MintableInterface extends Interface {
|
|
94
98
|
functionFragment: "isOperatorFor",
|
95
99
|
values: [AddressLike, BytesLike]
|
96
100
|
): string;
|
97
|
-
encodeFunctionData(
|
98
|
-
functionFragment: "mint",
|
99
|
-
values: [AddressLike, BytesLike, boolean, BytesLike]
|
100
|
-
): string;
|
101
101
|
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
102
102
|
encodeFunctionData(
|
103
103
|
functionFragment: "renounceOwnership",
|
@@ -158,6 +158,7 @@ export interface LSP8MintableInterface extends Interface {
|
|
158
158
|
): Result;
|
159
159
|
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
160
160
|
decodeFunctionResult(functionFragment: "batchCalls", data: BytesLike): Result;
|
161
|
+
decodeFunctionResult(functionFragment: "burn", data: BytesLike): Result;
|
161
162
|
decodeFunctionResult(functionFragment: "getData", data: BytesLike): Result;
|
162
163
|
decodeFunctionResult(
|
163
164
|
functionFragment: "getDataBatch",
|
@@ -179,7 +180,6 @@ export interface LSP8MintableInterface extends Interface {
|
|
179
180
|
functionFragment: "isOperatorFor",
|
180
181
|
data: BytesLike
|
181
182
|
): Result;
|
182
|
-
decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result;
|
183
183
|
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
184
184
|
decodeFunctionResult(
|
185
185
|
functionFragment: "renounceOwnership",
|
@@ -358,11 +358,11 @@ export namespace TransferEvent {
|
|
358
358
|
export type LogDescription = TypedLogDescription<Event>;
|
359
359
|
}
|
360
360
|
|
361
|
-
export interface
|
362
|
-
connect(runner?: ContractRunner | null):
|
361
|
+
export interface LSP8Burnable extends BaseContract {
|
362
|
+
connect(runner?: ContractRunner | null): LSP8Burnable;
|
363
363
|
waitForDeployment(): Promise<this>;
|
364
364
|
|
365
|
-
interface:
|
365
|
+
interface: LSP8BurnableInterface;
|
366
366
|
|
367
367
|
queryFilter<TCEvent extends TypedContractEvent>(
|
368
368
|
event: TCEvent,
|
@@ -419,6 +419,12 @@ export interface LSP8Mintable extends BaseContract {
|
|
419
419
|
"nonpayable"
|
420
420
|
>;
|
421
421
|
|
422
|
+
burn: TypedContractMethod<
|
423
|
+
[tokenId: BytesLike, data: BytesLike],
|
424
|
+
[void],
|
425
|
+
"nonpayable"
|
426
|
+
>;
|
427
|
+
|
422
428
|
getData: TypedContractMethod<[dataKey: BytesLike], [string], "view">;
|
423
429
|
|
424
430
|
getDataBatch: TypedContractMethod<
|
@@ -447,12 +453,6 @@ export interface LSP8Mintable extends BaseContract {
|
|
447
453
|
"view"
|
448
454
|
>;
|
449
455
|
|
450
|
-
mint: TypedContractMethod<
|
451
|
-
[to: AddressLike, tokenId: BytesLike, force: boolean, data: BytesLike],
|
452
|
-
[void],
|
453
|
-
"nonpayable"
|
454
|
-
>;
|
455
|
-
|
456
456
|
owner: TypedContractMethod<[], [string], "view">;
|
457
457
|
|
458
458
|
renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
|
@@ -559,6 +559,13 @@ export interface LSP8Mintable extends BaseContract {
|
|
559
559
|
getFunction(
|
560
560
|
nameOrSignature: "batchCalls"
|
561
561
|
): TypedContractMethod<[data: BytesLike[]], [string[]], "nonpayable">;
|
562
|
+
getFunction(
|
563
|
+
nameOrSignature: "burn"
|
564
|
+
): TypedContractMethod<
|
565
|
+
[tokenId: BytesLike, data: BytesLike],
|
566
|
+
[void],
|
567
|
+
"nonpayable"
|
568
|
+
>;
|
562
569
|
getFunction(
|
563
570
|
nameOrSignature: "getData"
|
564
571
|
): TypedContractMethod<[dataKey: BytesLike], [string], "view">;
|
@@ -589,13 +596,6 @@ export interface LSP8Mintable extends BaseContract {
|
|
589
596
|
[boolean],
|
590
597
|
"view"
|
591
598
|
>;
|
592
|
-
getFunction(
|
593
|
-
nameOrSignature: "mint"
|
594
|
-
): TypedContractMethod<
|
595
|
-
[to: AddressLike, tokenId: BytesLike, force: boolean, data: BytesLike],
|
596
|
-
[void],
|
597
|
-
"nonpayable"
|
598
|
-
>;
|
599
599
|
getFunction(
|
600
600
|
nameOrSignature: "owner"
|
601
601
|
): TypedContractMethod<[], [string], "view">;
|
@@ -21,15 +21,15 @@ import type {
|
|
21
21
|
TypedLogDescription,
|
22
22
|
TypedListener,
|
23
23
|
TypedContractMethod,
|
24
|
-
} from "
|
24
|
+
} from "../../common";
|
25
25
|
|
26
|
-
export interface
|
27
|
-
extends Interface {
|
26
|
+
export interface LSP8BurnableInitAbstractInterface extends Interface {
|
28
27
|
getFunction(
|
29
28
|
nameOrSignature:
|
30
29
|
| "authorizeOperator"
|
31
30
|
| "balanceOf"
|
32
31
|
| "batchCalls"
|
32
|
+
| "burn"
|
33
33
|
| "getData"
|
34
34
|
| "getDataBatch"
|
35
35
|
| "getDataBatchForTokenIds"
|
@@ -75,6 +75,10 @@ export interface LSP8IdentifiableDigitalAssetInitAbstractInterface
|
|
75
75
|
functionFragment: "batchCalls",
|
76
76
|
values: [BytesLike[]]
|
77
77
|
): string;
|
78
|
+
encodeFunctionData(
|
79
|
+
functionFragment: "burn",
|
80
|
+
values: [BytesLike, BytesLike]
|
81
|
+
): string;
|
78
82
|
encodeFunctionData(functionFragment: "getData", values: [BytesLike]): string;
|
79
83
|
encodeFunctionData(
|
80
84
|
functionFragment: "getDataBatch",
|
@@ -156,6 +160,7 @@ export interface LSP8IdentifiableDigitalAssetInitAbstractInterface
|
|
156
160
|
): Result;
|
157
161
|
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
158
162
|
decodeFunctionResult(functionFragment: "batchCalls", data: BytesLike): Result;
|
163
|
+
decodeFunctionResult(functionFragment: "burn", data: BytesLike): Result;
|
159
164
|
decodeFunctionResult(functionFragment: "getData", data: BytesLike): Result;
|
160
165
|
decodeFunctionResult(
|
161
166
|
functionFragment: "getDataBatch",
|
@@ -367,13 +372,11 @@ export namespace TransferEvent {
|
|
367
372
|
export type LogDescription = TypedLogDescription<Event>;
|
368
373
|
}
|
369
374
|
|
370
|
-
export interface
|
371
|
-
connect(
|
372
|
-
runner?: ContractRunner | null
|
373
|
-
): LSP8IdentifiableDigitalAssetInitAbstract;
|
375
|
+
export interface LSP8BurnableInitAbstract extends BaseContract {
|
376
|
+
connect(runner?: ContractRunner | null): LSP8BurnableInitAbstract;
|
374
377
|
waitForDeployment(): Promise<this>;
|
375
378
|
|
376
|
-
interface:
|
379
|
+
interface: LSP8BurnableInitAbstractInterface;
|
377
380
|
|
378
381
|
queryFilter<TCEvent extends TypedContractEvent>(
|
379
382
|
event: TCEvent,
|
@@ -430,6 +433,12 @@ export interface LSP8IdentifiableDigitalAssetInitAbstract extends BaseContract {
|
|
430
433
|
"nonpayable"
|
431
434
|
>;
|
432
435
|
|
436
|
+
burn: TypedContractMethod<
|
437
|
+
[tokenId: BytesLike, data: BytesLike],
|
438
|
+
[void],
|
439
|
+
"nonpayable"
|
440
|
+
>;
|
441
|
+
|
433
442
|
getData: TypedContractMethod<[dataKey: BytesLike], [string], "view">;
|
434
443
|
|
435
444
|
getDataBatch: TypedContractMethod<
|
@@ -564,6 +573,13 @@ export interface LSP8IdentifiableDigitalAssetInitAbstract extends BaseContract {
|
|
564
573
|
getFunction(
|
565
574
|
nameOrSignature: "batchCalls"
|
566
575
|
): TypedContractMethod<[data: BytesLike[]], [string[]], "nonpayable">;
|
576
|
+
getFunction(
|
577
|
+
nameOrSignature: "burn"
|
578
|
+
): TypedContractMethod<
|
579
|
+
[tokenId: BytesLike, data: BytesLike],
|
580
|
+
[void],
|
581
|
+
"nonpayable"
|
582
|
+
>;
|
567
583
|
getFunction(
|
568
584
|
nameOrSignature: "getData"
|
569
585
|
): TypedContractMethod<[dataKey: BytesLike], [string], "view">;
|
@@ -3,6 +3,7 @@
|
|
3
3
|
/* eslint-disable */
|
4
4
|
import type {
|
5
5
|
BaseContract,
|
6
|
+
BigNumberish,
|
6
7
|
BytesLike,
|
7
8
|
FunctionFragment,
|
8
9
|
Result,
|
@@ -20,9 +21,9 @@ import type {
|
|
20
21
|
TypedLogDescription,
|
21
22
|
TypedListener,
|
22
23
|
TypedContractMethod,
|
23
|
-
} from "
|
24
|
+
} from "../../common";
|
24
25
|
|
25
|
-
export interface
|
26
|
+
export interface LSP8EnumerableInterface extends Interface {
|
26
27
|
getFunction(
|
27
28
|
nameOrSignature:
|
28
29
|
| "authorizeOperator"
|
@@ -42,9 +43,9 @@ export interface LSP8CappedSupplyInterface extends Interface {
|
|
42
43
|
| "setDataBatchForTokenIds"
|
43
44
|
| "setDataForTokenId"
|
44
45
|
| "supportsInterface"
|
46
|
+
| "tokenAt"
|
45
47
|
| "tokenIdsOf"
|
46
48
|
| "tokenOwnerOf"
|
47
|
-
| "tokenSupplyCap"
|
48
49
|
| "totalSupply"
|
49
50
|
| "transfer"
|
50
51
|
| "transferBatch"
|
@@ -123,6 +124,10 @@ export interface LSP8CappedSupplyInterface extends Interface {
|
|
123
124
|
functionFragment: "supportsInterface",
|
124
125
|
values: [BytesLike]
|
125
126
|
): string;
|
127
|
+
encodeFunctionData(
|
128
|
+
functionFragment: "tokenAt",
|
129
|
+
values: [BigNumberish]
|
130
|
+
): string;
|
126
131
|
encodeFunctionData(
|
127
132
|
functionFragment: "tokenIdsOf",
|
128
133
|
values: [AddressLike]
|
@@ -131,10 +136,6 @@ export interface LSP8CappedSupplyInterface extends Interface {
|
|
131
136
|
functionFragment: "tokenOwnerOf",
|
132
137
|
values: [BytesLike]
|
133
138
|
): string;
|
134
|
-
encodeFunctionData(
|
135
|
-
functionFragment: "tokenSupplyCap",
|
136
|
-
values?: undefined
|
137
|
-
): string;
|
138
139
|
encodeFunctionData(
|
139
140
|
functionFragment: "totalSupply",
|
140
141
|
values?: undefined
|
@@ -205,15 +206,12 @@ export interface LSP8CappedSupplyInterface extends Interface {
|
|
205
206
|
functionFragment: "supportsInterface",
|
206
207
|
data: BytesLike
|
207
208
|
): Result;
|
209
|
+
decodeFunctionResult(functionFragment: "tokenAt", data: BytesLike): Result;
|
208
210
|
decodeFunctionResult(functionFragment: "tokenIdsOf", data: BytesLike): Result;
|
209
211
|
decodeFunctionResult(
|
210
212
|
functionFragment: "tokenOwnerOf",
|
211
213
|
data: BytesLike
|
212
214
|
): Result;
|
213
|
-
decodeFunctionResult(
|
214
|
-
functionFragment: "tokenSupplyCap",
|
215
|
-
data: BytesLike
|
216
|
-
): Result;
|
217
215
|
decodeFunctionResult(
|
218
216
|
functionFragment: "totalSupply",
|
219
217
|
data: BytesLike
|
@@ -361,11 +359,11 @@ export namespace TransferEvent {
|
|
361
359
|
export type LogDescription = TypedLogDescription<Event>;
|
362
360
|
}
|
363
361
|
|
364
|
-
export interface
|
365
|
-
connect(runner?: ContractRunner | null):
|
362
|
+
export interface LSP8Enumerable extends BaseContract {
|
363
|
+
connect(runner?: ContractRunner | null): LSP8Enumerable;
|
366
364
|
waitForDeployment(): Promise<this>;
|
367
365
|
|
368
|
-
interface:
|
366
|
+
interface: LSP8EnumerableInterface;
|
369
367
|
|
370
368
|
queryFilter<TCEvent extends TypedContractEvent>(
|
371
369
|
event: TCEvent,
|
@@ -495,6 +493,8 @@ export interface LSP8CappedSupply extends BaseContract {
|
|
495
493
|
"view"
|
496
494
|
>;
|
497
495
|
|
496
|
+
tokenAt: TypedContractMethod<[index: BigNumberish], [string], "view">;
|
497
|
+
|
498
498
|
tokenIdsOf: TypedContractMethod<
|
499
499
|
[tokenOwner: AddressLike],
|
500
500
|
[string[]],
|
@@ -503,8 +503,6 @@ export interface LSP8CappedSupply extends BaseContract {
|
|
503
503
|
|
504
504
|
tokenOwnerOf: TypedContractMethod<[tokenId: BytesLike], [string], "view">;
|
505
505
|
|
506
|
-
tokenSupplyCap: TypedContractMethod<[], [bigint], "view">;
|
507
|
-
|
508
506
|
totalSupply: TypedContractMethod<[], [bigint], "view">;
|
509
507
|
|
510
508
|
transfer: TypedContractMethod<
|
@@ -637,15 +635,15 @@ export interface LSP8CappedSupply extends BaseContract {
|
|
637
635
|
getFunction(
|
638
636
|
nameOrSignature: "supportsInterface"
|
639
637
|
): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
|
638
|
+
getFunction(
|
639
|
+
nameOrSignature: "tokenAt"
|
640
|
+
): TypedContractMethod<[index: BigNumberish], [string], "view">;
|
640
641
|
getFunction(
|
641
642
|
nameOrSignature: "tokenIdsOf"
|
642
643
|
): TypedContractMethod<[tokenOwner: AddressLike], [string[]], "view">;
|
643
644
|
getFunction(
|
644
645
|
nameOrSignature: "tokenOwnerOf"
|
645
646
|
): TypedContractMethod<[tokenId: BytesLike], [string], "view">;
|
646
|
-
getFunction(
|
647
|
-
nameOrSignature: "tokenSupplyCap"
|
648
|
-
): TypedContractMethod<[], [bigint], "view">;
|
649
647
|
getFunction(
|
650
648
|
nameOrSignature: "totalSupply"
|
651
649
|
): TypedContractMethod<[], [bigint], "view">;
|