4.0.0 • Published 5 years ago

oathforge v4.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

OathForge: NFT Registry

Author: GuildCrypt

abi | bytecode | runtime bytecode

Documentation generated by @GuildCrypt/solspecdown

NameType
Approval(address,address,uint256)event
ApprovalForAll(address,address,bool)event
approve(address,uint256)function (non-constant)
constructor(string,string)constructor
balanceOf(address)function (constant)
getApproved(uint256)function (constant)
initiateSunset(uint256)function (non-constant)
isApprovedForAll(address,address)function (constant)
isBlacklisted(address)function (constant)
isOwner()function (constant)
mint(address,string,uint256)function (non-constant)
name()function (constant)
nextTokenId()function (constant)
owner()function (constant)
ownerOf(uint256)function (constant)
OwnershipTransferred(address,address)event
redemptionCodeHash(uint256)function (constant)
RedemptionCodeHashSubmitted(uint256,bytes32)event
redemptionCodeHashSubmittedAt(uint256)function (constant)
renounceOwnership()function (non-constant)
safeTransferFrom(address,address,uint256,bytes)function (non-constant)
safeTransferFrom(address,address,uint256)function (non-constant)
setApprovalForAll(address,bool)function (non-constant)
setIsBlacklisted(address,bool)function (non-constant)
setTokenURI(uint256,string)function (non-constant)
submitRedemptionCodeHash(uint256,bytes32)function (non-constant)
SunsetInitiated(uint256)event
sunsetInitiatedAt(uint256)function (constant)
sunsetLength(uint256)function (constant)
supportsInterface(bytes4)function (constant)
symbol()function (constant)
tokenURI(uint256)function (constant)
totalSupply()function (constant)
Transfer(address,address,uint256)event
transferFrom(address,address,uint256)function (non-constant)
transferOwnership(address)function (non-constant)

Approval(address,address,uint256)

Inputs
TypeNameDescriptionIndexed?
0addressownertrue
1addressapprovedtrue
2uint256tokenIdtrue

ApprovalForAll(address,address,bool)

Inputs
TypeNameDescriptionIndexed?
0addressownertrue
1addressoperatortrue
2boolapprovedfalse

approve(address,uint256)

Approves another address to transfer the given token ID The zero address indicates there is no approved address. There can only be one approved address per token at a given time. Can only be called by the token owner or an approved operator.

Inputs
TypeNameDescription
0addresstoaddress to be approved for the given token ID
1uint256tokenIduint256 ID of the token to be approved

constructor(string,string)

Inputs
TypeNameDescription
0stringname
1stringsymbol

balanceOf(address)

Gets the balance of the specified address

Inputs
TypeNameDescription
0addressowneraddress to query the balance of
Outputs
TypeNameDescription
0uint256

getApproved(uint256)

Gets the approved address for a token ID, or zero if no address set Reverts if the token ID does not exist.

Inputs
TypeNameDescription
0uint256tokenIduint256 ID of the token to query the approval of
Outputs
TypeNameDescription
0address

initiateSunset(uint256)

Initiate a sunset. Sets sunsetInitiatedAt to current timestamp. Only owner may call this function.

Inputs
TypeNameDescription
0uint256tokenIdThe id of the token

isApprovedForAll(address,address)

Tells whether an operator is approved by a given owner

Inputs
TypeNameDescription
0addressownerowner address which you want to query the approval of
1addressoperatoroperator address which you want to query the approval of
Outputs
TypeNameDescription
0bool

isBlacklisted(address)

Returns if an address is blacklisted

Inputs
TypeNameDescription
0addresstoThe address to check
Outputs
TypeNameDescription
0bool

isOwner()

Outputs
TypeNameDescription
0bool

mint(address,string,uint256)

Mint a token. Only owner may call this function.

Inputs
TypeNameDescription
0addresstoThe receiver of the token
1stringtokenURIThe tokenURI of the the tokenURI
2uint256__sunsetLengthThe length (in seconds) that a sunset period can last

name()

Gets the token name

Outputs
TypeNameDescription
0string

nextTokenId()

Returns the token id of the next minted token

Outputs
TypeNameDescription
0uint256

owner()

Outputs
TypeNameDescription
0address

ownerOf(uint256)

Gets the owner of the specified token ID

Inputs
TypeNameDescription
0uint256tokenIduint256 ID of the token to query the owner of
Outputs
TypeNameDescription
0address

OwnershipTransferred(address,address)

Inputs
TypeNameDescriptionIndexed?
0addresspreviousOwnertrue
1addressnewOwnertrue

redemptionCodeHash(uint256)

Returns the redemption code hash submitted for a token

Inputs
TypeNameDescription
0uint256tokenIdThe token id
Outputs
TypeNameDescription
0bytes32

RedemptionCodeHashSubmitted(uint256,bytes32)

Inputs
TypeNameDescriptionIndexed?
0uint256tokenIdtrue
1bytes32redemptionCodeHashfalse

redemptionCodeHashSubmittedAt(uint256)

Returns the timestamp at which a redemption code hash was submitted

Inputs
TypeNameDescription
0uint256tokenIdThe token id
Outputs
TypeNameDescription
0uint256

renounceOwnership()

Allows the current owner to relinquish control of the contract.

safeTransferFrom(address,address,uint256,bytes)

Safely transfers the ownership of a given token ID to another address If the target address is a contract, it must implement onERC721Received, which is called upon a safe transfer, and return the magic value bytes4(keccak256("onERC721Received(address,address,uint256,bytes)")); otherwise, the transfer is reverted. Requires the msg sender to be the owner, approved, or operator

Inputs
TypeNameDescription
0addressfromcurrent owner of the token
1addresstoaddress to receive the ownership of the given token ID
2uint256tokenIduint256 ID of the token to be transferred
3bytes_databytes data to send along with a safe transfer check

safeTransferFrom(address,address,uint256)

Safely transfers the ownership of a given token ID to another address If the target address is a contract, it must implement onERC721Received, which is called upon a safe transfer, and return the magic value bytes4(keccak256("onERC721Received(address,address,uint256,bytes)")); otherwise, the transfer is reverted. * Requires the msg sender to be the owner, approved, or operator

Inputs
TypeNameDescription
0addressfromcurrent owner of the token
1addresstoaddress to receive the ownership of the given token ID
2uint256tokenIduint256 ID of the token to be transferred

setApprovalForAll(address,bool)

Sets or unsets the approval of a given operator An operator is allowed to transfer all tokens of the sender on their behalf

Inputs
TypeNameDescription
0addresstooperator address to set the approval
1boolapprovedrepresenting the status of the approval to be set

setIsBlacklisted(address,bool)

Set if an address is blacklisted

Inputs
TypeNameDescription
0addresstoThe address to change
1bool__isBlacklistedTrue if the address should be blacklisted, false otherwise

setTokenURI(uint256,string)

Set tokenUri. Only owner may do this.

Inputs
TypeNameDescription
0uint256tokenIdThe id of the token
1stringtokenURIThe token URI

submitRedemptionCodeHash(uint256,bytes32)

Submit a redemption code hash for a specific token. Burns the token. Sets redemptionCodeHashSubmittedAt to current timestamp. Decreases totalSupply by 1.

Inputs
TypeNameDescription
0uint256tokenIdThe id of the token
1bytes32__redemptionCodeHashThe redemption code hash

SunsetInitiated(uint256)

Inputs
TypeNameDescriptionIndexed?
0uint256tokenIdtrue

sunsetInitiatedAt(uint256)

Returns the timestamp at which a token's sunset was initated. Returns 0 if no sunset has been initated.

Inputs
TypeNameDescription
0uint256tokenIdThe token id
Outputs
TypeNameDescription
0uint256

sunsetLength(uint256)

Returns the sunset length of a token

Inputs
TypeNameDescription
0uint256tokenIdThe token id
Outputs
TypeNameDescription
0uint256

supportsInterface(bytes4)

implement supportsInterface(bytes4) using a lookup table

Inputs
TypeNameDescription
0bytes4interfaceId
Outputs
TypeNameDescription
0bool

symbol()

Gets the token symbol

Outputs
TypeNameDescription
0string

tokenURI(uint256)

Returns an URI for a given token ID Throws if the token ID does not exist. May return an empty string.

Inputs
TypeNameDescription
0uint256tokenIduint256 ID of the token to query
Outputs
TypeNameDescription
0string

totalSupply()

Returns the total number of tokens (minted - burned) registered

Outputs
TypeNameDescription
0uint256

Transfer(address,address,uint256)

Inputs
TypeNameDescriptionIndexed?
0addressfromtrue
1addresstotrue
2uint256tokenIdtrue

transferFrom(address,address,uint256)

Transfers the ownership of a given token ID to another address. Usage of this method is discouraged, use safeTransferFrom whenever possible. Requires the msg sender to be the owner, approved, or operator

Inputs
TypeNameDescription
0addressfromcurrent owner of the token
1addresstoaddress to receive the ownership of the given token ID
2uint256tokenIduint256 ID of the token to be transferred

transferOwnership(address)

Allows the current owner to transfer control of the contract to a newOwner.

Inputs
TypeNameDescription
0addressnewOwnerThe address to transfer ownership to.