///
import BN from "bn.js";
import { ContractOptions } from "web3-eth-contract";
import { EventLog } from "web3-core";
import { EventEmitter } from "events";
import { Callback, NonPayableTransactionObject, BlockType, ContractEventLog, BaseContract } from "./types";
export interface EventOptions {
filter?: object;
fromBlock?: BlockType;
topics?: string[];
}
export declare type Approval = ContractEventLog<{
_id: string;
_owner: string;
_spender: string;
_value: string;
0: string;
1: string;
2: string;
3: string;
}>;
export declare type Initialize = ContractEventLog<{
_block: string;
_storage: string;
_oldContract: string;
0: string;
1: string;
2: string;
}>;
export declare type Retire = ContractEventLog<{
_block: string;
_nextContract: string;
0: string;
1: string;
}>;
export declare type Log = ContractEventLog<{
_id: string;
_from: string;
_data: string;
0: string;
1: string;
2: string;
}>;
export declare type UpdateDecimals = ContractEventLog<{
_id: string;
0: string;
}>;
export declare type UpdateName = ContractEventLog<{
_id: string;
0: string;
}>;
export declare type UpdateSymbol = ContractEventLog<{
_id: string;
0: string;
}>;
export declare type SetURI = ContractEventLog<{
_id: string;
_uri: string;
0: string;
1: string;
}>;
export declare type Assign = ContractEventLog<{
_id: string;
_from: string;
_to: string;
0: string;
1: string;
2: string;
}>;
export declare type AcceptAssignment = ContractEventLog<{
_id: string;
_creator: string;
0: string;
1: string;
}>;
export declare type Create = ContractEventLog<{
_id: string;
_creator: string;
_isNonFungible: boolean;
0: string;
1: string;
2: boolean;
}>;
export declare type Mint = ContractEventLog<{
_id: string;
_value: string;
0: string;
1: string;
}>;
export declare type UpdateMaxMeltFee = ContractEventLog<{
_id: string;
0: string;
}>;
export declare type UpdateMeltFee = ContractEventLog<{
_id: string;
0: string;
}>;
export declare type OperatorApproval = ContractEventLog<{
_owner: string;
_operator: string;
_id: string;
_approved: boolean;
0: string;
1: string;
2: string;
3: boolean;
}>;
export declare type Transfer = ContractEventLog<{
_id: string;
_from: string;
_to: string;
_value: string;
0: string;
1: string;
2: string;
3: string;
}>;
export declare type TransferFee = ContractEventLog<{
_id: string;
_sender: string;
_feeId: string;
_feeValue: string;
0: string;
1: string;
2: string;
3: string;
}>;
export declare type UpdateMaxTransferFee = ContractEventLog<{
_id: string;
0: string;
}>;
export declare type UpdateTransferable = ContractEventLog<{
_id: string;
0: string;
}>;
export declare type UpdateTransferFee = ContractEventLog<{
_id: string;
0: string;
}>;
export declare type Whitelist = ContractEventLog<{
_id: string;
_account: string;
_whitelisted: string;
_on: boolean;
0: string;
1: string;
2: string;
3: boolean;
}>;
export declare type Melt = ContractEventLog<{
_id: string;
_owner: string;
_value: string;
0: string;
1: string;
2: string;
}>;
export declare type DeployERCAdapter = ContractEventLog<{
_id: string;
_sender: string;
0: string;
1: string;
}>;
export declare type CreateTrade = ContractEventLog<{
_tradeId: string;
_firstParty: string;
_secondParty: string;
_escrowedEnjFirstParty: string;
0: string;
1: string;
2: string;
3: string;
}>;
export declare type CompleteTrade = ContractEventLog<{
_tradeId: string;
_firstParty: string;
_secondParty: string;
_receivedEnjFirstParty: string;
_changeEnjFirstParty: string;
_receivedEnjSecondParty: string;
0: string;
1: string;
2: string;
3: string;
4: string;
5: string;
}>;
export declare type CancelTrade = ContractEventLog<{
_tradeId: string;
_firstParty: string;
_receivedEnjFirstParty: string;
0: string;
1: string;
2: string;
}>;
export interface ERC1155Abi extends BaseContract {
constructor(jsonInterface: any[], address?: string, options?: ContractOptions): ERC1155Abi;
clone(): ERC1155Abi;
methods: {
supportsInterface(_interfaceID: string | number[]): NonPayableTransactionObject;
create(_name: string, _totalSupply: number | string | BN, _initialReserve: number | string | BN, _supplyModel: string, _meltValue: number | string | BN, _meltFeeRatio: number | string | BN, _transferable: number | string | BN, _transferFeeSettings: (number | string | BN)[], _nonFungible: boolean): NonPayableTransactionObject;
minMeltValue(_initialReserve: number | string | BN): NonPayableTransactionObject;
mintFungibles(_id: number | string | BN, _to: string[], _values: (number | string | BN)[]): NonPayableTransactionObject;
mintNonFungibles(_id: number | string | BN, _to: string[]): NonPayableTransactionObject;
mintNonFungiblesWithData(_id: number | string | BN, _to: string[], _data: (number | string | BN)[]): NonPayableTransactionObject;
reserve(_id: number | string | BN): NonPayableTransactionObject;
releaseReserve(_id: number | string | BN, _value: number | string | BN): NonPayableTransactionObject;
updateName(_id: number | string | BN, _name: string): NonPayableTransactionObject;
assign(_id: number | string | BN, _creator: string): NonPayableTransactionObject;
acceptAssignment(_id: number | string | BN): NonPayableTransactionObject;
setWhitelisted(_id: number | string | BN, _account: string, _whitelisted: string, _on: boolean): NonPayableTransactionObject;
setTransferable(_id: number | string | BN, _transferable: number | string | BN): NonPayableTransactionObject;
setMeltFee(_id: number | string | BN, _fee: number | string | BN): NonPayableTransactionObject;
decreaseMaxMeltFee(_id: number | string | BN, _fee: number | string | BN): NonPayableTransactionObject;
setTransferFee(_id: number | string | BN, _fee: number | string | BN): NonPayableTransactionObject;
decreaseMaxTransferFee(_id: number | string | BN, _fee: number | string | BN): NonPayableTransactionObject;
deployERC20Adapter(_id: number | string | BN, _decimals: number | string | BN, _symbol: string): NonPayableTransactionObject;
deployERC721Adapter(_id: number | string | BN, _symbol: string): NonPayableTransactionObject;
addLog(_id: number | string | BN, _data: string): NonPayableTransactionObject;
typeCount(): NonPayableTransactionObject;
typeByIndex(_index: number | string | BN): NonPayableTransactionObject;
nonFungibleTypeCount(): NonPayableTransactionObject;
nonFungibleTypeByIndex(_index: number | string | BN): NonPayableTransactionObject;
fungibleTypeCount(): NonPayableTransactionObject;
fungibleTypeByIndex(_index: number | string | BN): NonPayableTransactionObject;
typeData(_id: number | string | BN): NonPayableTransactionObject<{
_name: string;
_creator: string;
_meltValue: string;
_meltFeeRatio: string;
_meltFeeMaxRatio: string;
_supplyModel: string;
_totalSupply: string;
_circulatingSupply: string;
_reserve: string;
_transferable: string;
_transferFeeData: string[];
_nonFungible: boolean;
0: string;
1: string;
2: string;
3: string;
4: string;
5: string;
6: string;
7: string;
8: string;
9: string;
10: string[];
11: boolean;
}>;
transferSettings(_id: number | string | BN): NonPayableTransactionObject<{
_transferable: string;
_transferFeeType: string;
_transferFeeCurrency: string;
_transferFeeValue: string;
_transferFeeMaxValue: string;
0: string;
1: string;
2: string;
3: string;
4: string;
}>;
isCreatorOf(_id: number | string | BN, _creator: string): NonPayableTransactionObject;
whitelisted(_id: number | string | BN, _account: string, _whitelisted: string): NonPayableTransactionObject;
name(_id: number | string | BN): NonPayableTransactionObject;
totalSupply(_id: number | string | BN): NonPayableTransactionObject;
mintableSupply(_id: number | string | BN): NonPayableTransactionObject;
circulatingSupply(_id: number | string | BN): NonPayableTransactionObject;
balanceOf(_id: number | string | BN, _owner: string): NonPayableTransactionObject;
decimals(_id: number | string | BN): NonPayableTransactionObject;
symbol(_id: number | string | BN): NonPayableTransactionObject;
getERC20Adapter(_id: number | string | BN): NonPayableTransactionObject;
getERC721Adapter(_id: number | string | BN): NonPayableTransactionObject;
transfer(_to: string, _id: number | string | BN, _value: number | string | BN): NonPayableTransactionObject;
safeTransfer(_to: string, _id: number | string | BN, _value: number | string | BN, _data: string | number[]): NonPayableTransactionObject;
transferAdapter(_to: string, _id: number | string | BN, _value: number | string | BN, _msgSender: string): NonPayableTransactionObject;
transferFrom(_from: string, _to: string, _id: number | string | BN, _value: number | string | BN): NonPayableTransactionObject;
safeTransferFrom(_from: string, _to: string, _id: number | string | BN, _value: number | string | BN, _data: string | number[]): NonPayableTransactionObject;
transferFromAdapter(_from: string, _to: string, _id: number | string | BN, _value: number | string | BN, _msgSender: string): NonPayableTransactionObject;
batchTransfer(_to: string, _ids: (number | string | BN)[], _values: (number | string | BN)[]): NonPayableTransactionObject;
safeBatchTransfer(_to: string, _ids: (number | string | BN)[], _values: (number | string | BN)[], _data: string | number[]): NonPayableTransactionObject;
batchTransferFrom(_from: string, _to: string, _ids: (number | string | BN)[], _values: (number | string | BN)[]): NonPayableTransactionObject;
safeBatchTransferFrom(_from: string, _to: string, _ids: (number | string | BN)[], _values: (number | string | BN)[], _data: string | number[]): NonPayableTransactionObject;
multicastTransfer(_to: string[], _ids: (number | string | BN)[], _values: (number | string | BN)[]): NonPayableTransactionObject;
safeMulticastTransfer(_to: string[], _ids: (number | string | BN)[], _values: (number | string | BN)[], _data: string | number[]): NonPayableTransactionObject;
multicastTransferFrom(_from: string[], _to: string[], _ids: (number | string | BN)[], _values: (number | string | BN)[]): NonPayableTransactionObject;
allowance(_id: number | string | BN, _owner: string, _spender: string): NonPayableTransactionObject;
approve(_spender: string, _id: number | string | BN, _currentValue: number | string | BN, _value: number | string | BN): NonPayableTransactionObject;
approveAdapter(_spender: string, _id: number | string | BN, _currentValue: number | string | BN, _value: number | string | BN, _msgSender: string): NonPayableTransactionObject;
batchApprove(_spender: string, _ids: (number | string | BN)[], _currentValues: (number | string | BN)[], _values: (number | string | BN)[]): NonPayableTransactionObject;
setApproval(_operator: string, _ids: (number | string | BN)[], _approved: boolean): NonPayableTransactionObject;
setApprovalForAll(_operator: string, _approved: boolean): NonPayableTransactionObject;
setApprovalAdapter(_operator: string, _id: number | string | BN, _approved: boolean, _msgSender: string): NonPayableTransactionObject;
isApproved(_owner: string, _operator: string, _id: number | string | BN): NonPayableTransactionObject;
isApprovedForAll(_owner: string, _operator: string): NonPayableTransactionObject;
transferFees(_id: number | string | BN, _value: number | string | BN, _from: string, _to: string): NonPayableTransactionObject<{
_transferValue: string;
_minTransferValue: string;
_transferFeeCurrency: string;
_fee: string;
_maxFee: string;
0: string;
1: string;
2: string;
3: string;
4: string;
}>;
createTrade(_askingIds: (number | string | BN)[], _askingValues: (number | string | BN)[], _offeringIds: (number | string | BN)[], _offeringValues: (number | string | BN)[], _secondParty: string): NonPayableTransactionObject;
tradeCompletable(_id: number | string | BN): NonPayableTransactionObject;
completeTrade(_id: number | string | BN): NonPayableTransactionObject;
cancelTrade(_id: number | string | BN): NonPayableTransactionObject;
melt(_ids: (number | string | BN)[], _values: (number | string | BN)[]): NonPayableTransactionObject;
ownerOf(_id: number | string | BN): NonPayableTransactionObject;
setURI(_id: number | string | BN, _uri: string): NonPayableTransactionObject;
uri(_id: number | string | BN): NonPayableTransactionObject;
nonFungibleCount(_id: number | string | BN): NonPayableTransactionObject;
nonFungibleByIndex(_id: number | string | BN, _index: number | string | BN): NonPayableTransactionObject;
nonFungibleOfOwnerByIndex(_id: number | string | BN, _owner: string, _index: number | string | BN): NonPayableTransactionObject;
isNonFungible(_id: number | string | BN): NonPayableTransactionObject;
isContract(_addr: string): NonPayableTransactionObject;
releaseERC20(_erc20ContractAddress: string, _to: string, _value: number | string | BN): NonPayableTransactionObject;
releaseETH(_to: string, _value: number | string | BN): NonPayableTransactionObject;
releaseERC721(_erc721ContractAddress: string, _to: string, _token: number | string | BN): NonPayableTransactionObject;
releaseERC1155(_erc1155ContractAddress: string, _to: string, _id: number | string | BN, _value: number | string | BN): NonPayableTransactionObject;
initialize(_storage: string, _oldContract: string): NonPayableTransactionObject;
retire(_nextContract: string): NonPayableTransactionObject;
};
events: {
Approval(cb?: Callback): EventEmitter;
Approval(options?: EventOptions, cb?: Callback): EventEmitter;
Initialize(cb?: Callback): EventEmitter;
Initialize(options?: EventOptions, cb?: Callback): EventEmitter;
Retire(cb?: Callback): EventEmitter;
Retire(options?: EventOptions, cb?: Callback): EventEmitter;
Log(cb?: Callback): EventEmitter;
Log(options?: EventOptions, cb?: Callback): EventEmitter;
UpdateDecimals(cb?: Callback): EventEmitter;
UpdateDecimals(options?: EventOptions, cb?: Callback): EventEmitter;
UpdateName(cb?: Callback): EventEmitter;
UpdateName(options?: EventOptions, cb?: Callback): EventEmitter;
UpdateSymbol(cb?: Callback): EventEmitter;
UpdateSymbol(options?: EventOptions, cb?: Callback): EventEmitter;
SetURI(cb?: Callback): EventEmitter;
SetURI(options?: EventOptions, cb?: Callback): EventEmitter;
Assign(cb?: Callback): EventEmitter;
Assign(options?: EventOptions, cb?: Callback): EventEmitter;
AcceptAssignment(cb?: Callback): EventEmitter;
AcceptAssignment(options?: EventOptions, cb?: Callback): EventEmitter;
Create(cb?: Callback): EventEmitter;
Create(options?: EventOptions, cb?: Callback): EventEmitter;
Mint(cb?: Callback): EventEmitter;
Mint(options?: EventOptions, cb?: Callback): EventEmitter;
UpdateMaxMeltFee(cb?: Callback): EventEmitter;
UpdateMaxMeltFee(options?: EventOptions, cb?: Callback): EventEmitter;
UpdateMeltFee(cb?: Callback): EventEmitter;
UpdateMeltFee(options?: EventOptions, cb?: Callback): EventEmitter;
OperatorApproval(cb?: Callback): EventEmitter;
OperatorApproval(options?: EventOptions, cb?: Callback): EventEmitter;
Transfer(cb?: Callback): EventEmitter;
Transfer(options?: EventOptions, cb?: Callback): EventEmitter;
TransferFee(cb?: Callback): EventEmitter;
TransferFee(options?: EventOptions, cb?: Callback): EventEmitter;
UpdateMaxTransferFee(cb?: Callback): EventEmitter;
UpdateMaxTransferFee(options?: EventOptions, cb?: Callback): EventEmitter;
UpdateTransferable(cb?: Callback): EventEmitter;
UpdateTransferable(options?: EventOptions, cb?: Callback): EventEmitter;
UpdateTransferFee(cb?: Callback): EventEmitter;
UpdateTransferFee(options?: EventOptions, cb?: Callback): EventEmitter;
Whitelist(cb?: Callback): EventEmitter;
Whitelist(options?: EventOptions, cb?: Callback): EventEmitter;
Melt(cb?: Callback): EventEmitter;
Melt(options?: EventOptions, cb?: Callback): EventEmitter;
DeployERCAdapter(cb?: Callback): EventEmitter;
DeployERCAdapter(options?: EventOptions, cb?: Callback): EventEmitter;
CreateTrade(cb?: Callback): EventEmitter;
CreateTrade(options?: EventOptions, cb?: Callback): EventEmitter;
CompleteTrade(cb?: Callback): EventEmitter;
CompleteTrade(options?: EventOptions, cb?: Callback): EventEmitter;
CancelTrade(cb?: Callback): EventEmitter;
CancelTrade(options?: EventOptions, cb?: Callback): EventEmitter;
allEvents(options?: EventOptions, cb?: Callback): EventEmitter;
};
once(event: "Approval", cb: Callback): void;
once(event: "Approval", options: EventOptions, cb: Callback): void;
once(event: "Initialize", cb: Callback): void;
once(event: "Initialize", options: EventOptions, cb: Callback): void;
once(event: "Retire", cb: Callback): void;
once(event: "Retire", options: EventOptions, cb: Callback): void;
once(event: "Log", cb: Callback): void;
once(event: "Log", options: EventOptions, cb: Callback): void;
once(event: "UpdateDecimals", cb: Callback): void;
once(event: "UpdateDecimals", options: EventOptions, cb: Callback): void;
once(event: "UpdateName", cb: Callback): void;
once(event: "UpdateName", options: EventOptions, cb: Callback): void;
once(event: "UpdateSymbol", cb: Callback): void;
once(event: "UpdateSymbol", options: EventOptions, cb: Callback): void;
once(event: "SetURI", cb: Callback): void;
once(event: "SetURI", options: EventOptions, cb: Callback): void;
once(event: "Assign", cb: Callback): void;
once(event: "Assign", options: EventOptions, cb: Callback): void;
once(event: "AcceptAssignment", cb: Callback): void;
once(event: "AcceptAssignment", options: EventOptions, cb: Callback): void;
once(event: "Create", cb: Callback): void;
once(event: "Create", options: EventOptions, cb: Callback): void;
once(event: "Mint", cb: Callback): void;
once(event: "Mint", options: EventOptions, cb: Callback): void;
once(event: "UpdateMaxMeltFee", cb: Callback): void;
once(event: "UpdateMaxMeltFee", options: EventOptions, cb: Callback): void;
once(event: "UpdateMeltFee", cb: Callback): void;
once(event: "UpdateMeltFee", options: EventOptions, cb: Callback): void;
once(event: "OperatorApproval", cb: Callback): void;
once(event: "OperatorApproval", options: EventOptions, cb: Callback): void;
once(event: "Transfer", cb: Callback): void;
once(event: "Transfer", options: EventOptions, cb: Callback): void;
once(event: "TransferFee", cb: Callback): void;
once(event: "TransferFee", options: EventOptions, cb: Callback): void;
once(event: "UpdateMaxTransferFee", cb: Callback): void;
once(event: "UpdateMaxTransferFee", options: EventOptions, cb: Callback): void;
once(event: "UpdateTransferable", cb: Callback): void;
once(event: "UpdateTransferable", options: EventOptions, cb: Callback): void;
once(event: "UpdateTransferFee", cb: Callback): void;
once(event: "UpdateTransferFee", options: EventOptions, cb: Callback): void;
once(event: "Whitelist", cb: Callback): void;
once(event: "Whitelist", options: EventOptions, cb: Callback): void;
once(event: "Melt", cb: Callback): void;
once(event: "Melt", options: EventOptions, cb: Callback): void;
once(event: "DeployERCAdapter", cb: Callback): void;
once(event: "DeployERCAdapter", options: EventOptions, cb: Callback): void;
once(event: "CreateTrade", cb: Callback): void;
once(event: "CreateTrade", options: EventOptions, cb: Callback): void;
once(event: "CompleteTrade", cb: Callback): void;
once(event: "CompleteTrade", options: EventOptions, cb: Callback): void;
once(event: "CancelTrade", cb: Callback): void;
once(event: "CancelTrade", options: EventOptions, cb: Callback): void;
}