Properties
access Control Conditions Contract
access Control Conditions Contract: { read: ContractContext ; write: ContractContext ; }
Type declaration
read: ContractContext
write: ContractContext
allowlist Contract
allowlist Contract: { read: ContractContext ; write: ContractContext ; }
Type declaration
read: ContractContext
write: ContractContext
connected
connected: boolean = false
contract Resolver Contract
contract Resolver Contract: { read: ContractContext ; write: ContractContext ; }
Type declaration
read: ContractContext
write: ContractContext
debug
debug: boolean = false
isPKP
isPKP: boolean = false
lit Token Contract
lit Token Contract: { read: ContractContext ; write: ContractContext ; }
Type declaration
read: ContractContext
write: ContractContext
multisender Contract
multisender Contract: { read: ContractContext ; write: ContractContext ; }
Type declaration
read: ContractContext
write: ContractContext
Optional
options
options?: { storeOrUseStorageKey?: boolean ; }
Type declaration
Optional
store Or Use Storage Key?: boolean
pkp Helper Contract
pkp Helper Contract: { read: ContractContext ; write: ContractContext ; }
Type declaration
read: ContractContext
write: ContractContext
pkp Nft Contract
pkp Nft Contract: { read: ContractContext ; write: ContractContext ; }
Type declaration
read: ContractContext
write: ContractContext
pkp Nft Contract Util
pkp Nft Contract Util: { read: { getTokens: ( ( latestNumberOfTokens: number ) => Promise < string [] > ) ; getTokensByAddress: ( ( ownerAddress: string ) => Promise < string [] > ) ; getTokensInfoByAddress: ( ( ownerAddress: string ) => Promise < TokenInfo [] > ) ; } ; write: { mint: ( ( ) => Promise < { res: any ; tokenId: any ; tx: any ; } > ) ; } ; } = ...
Type declaration
read: { getTokens: ( ( latestNumberOfTokens: number ) => Promise < string [] > ) ; getTokensByAddress: ( ( ownerAddress: string ) => Promise < string [] > ) ; getTokensInfoByAddress: ( ( ownerAddress: string ) => Promise < TokenInfo [] > ) ; }
get Tokens: ( ( latestNumberOfTokens: number ) => Promise < string [] > )
( latestNumberOfTokens: number ) : Promise < string [] >
Parameters
latestNumberOfTokens: number
Returns Promise < string [] >
get Tokens By Address: ( ( ownerAddress: string ) => Promise < string [] > )
( ownerAddress: string ) : Promise < string [] >
Returns Promise < string [] >
get Tokens Info By Address: ( ( ownerAddress: string ) => Promise < TokenInfo [] > )
( ownerAddress: string ) : Promise < TokenInfo [] >
Returns Promise < TokenInfo [] >
write: { mint: ( ( ) => Promise < { res: any ; tokenId: any ; tx: any ; } > ) ; }
mint: ( ( ) => Promise < { res: any ; tokenId: any ; tx: any ; } > )
( ) : Promise < { res: any ; tokenId: any ; tx: any ; } >
Returns Promise < { res: any ; tokenId: any ; tx: any ; } >
pkp Permissions Contract
pkp Permissions Contract: { read: ContractContext ; write: ContractContext ; }
Type declaration
read: ContractContext
write: ContractContext
pkp Permissions Contract Util
pkp Permissions Contract Util: { read: { getPermittedActions: ( ( tokenId: any ) => Promise < any [] > ) ; getPermittedAddresses: ( ( tokenId: string ) => Promise < string [] > ) ; isPermittedAction: ( ( pkpId: string , ipfsId: string ) => Promise < boolean > ) ; isPermittedAddress: ( ( tokenId: string , address: string ) => Promise < boolean > ) ; } ; write: { addPermittedAction: ( ( pkpId: string , ipfsId: string ) => Promise < any > ) ; addPermittedAddress: ( ( pkpId: string , ownerAddress: string ) => Promise < any > ) ; revokePermittedAction: ( ( pkpId: string , ipfsId: string ) => Promise < any > ) ; } ; } = ...
Type declaration
read: { getPermittedActions: ( ( tokenId: any ) => Promise < any [] > ) ; getPermittedAddresses: ( ( tokenId: string ) => Promise < string [] > ) ; isPermittedAction: ( ( pkpId: string , ipfsId: string ) => Promise < boolean > ) ; isPermittedAddress: ( ( tokenId: string , address: string ) => Promise < boolean > ) ; }
get Permitted Actions: ( ( tokenId: any ) => Promise < any [] > )
( tokenId: any ) : Promise < any [] >
Returns Promise < any [] >
get Permitted Addresses: ( ( tokenId: string ) => Promise < string [] > )
( tokenId: string ) : Promise < string [] >
Returns Promise < string [] >
is Permitted Action: ( ( pkpId: string , ipfsId: string ) => Promise < boolean > )
( pkpId: string , ipfsId: string ) : Promise < boolean >
Parameters
pkpId: string
ipfsId: string
Returns Promise < boolean >
is Permitted Address: ( ( tokenId: string , address: string ) => Promise < boolean > )
( tokenId: string , address: string ) : Promise < boolean >
Parameters
tokenId: string
address: string
Returns Promise < boolean >
write: { addPermittedAction: ( ( pkpId: string , ipfsId: string ) => Promise < any > ) ; addPermittedAddress: ( ( pkpId: string , ownerAddress: string ) => Promise < any > ) ; revokePermittedAction: ( ( pkpId: string , ipfsId: string ) => Promise < any > ) ; }
add Permitted Action: ( ( pkpId: string , ipfsId: string ) => Promise < any > )
( pkpId: string , ipfsId: string ) : Promise < any >
Parameters
pkpId: string
ipfsId: string
Returns Promise < any >
add Permitted Address: ( ( pkpId: string , ownerAddress: string ) => Promise < any > )
( pkpId: string , ownerAddress: string ) : Promise < any >
Parameters
pkpId: string
ownerAddress: string
Returns Promise < any >
revoke Permitted Action: ( ( pkpId: string , ipfsId: string ) => Promise < any > )
( pkpId: string , ipfsId: string ) : Promise < any >
Parameters
pkpId: string
ipfsId: string
Returns Promise < any >
private Key
private Key: string
pubkey Router Contract
pubkey Router Contract: { read: ContractContext ; write: ContractContext ; }
Type declaration
read: ContractContext
write: ContractContext
random Private Key
random Private Key: boolean = false
rate Limit Nft Contract
rate Limit Nft Contract: { read: ContractContext ; write: ContractContext ; }
Type declaration
read: ContractContext
write: ContractContext
rate Limit Nft Contract Util
rate Limit Nft Contract Util: { read: { getCapacityByIndex: ( ( index: number ) => Promise < any > ) ; getTokenURIByIndex: ( ( index: number ) => Promise < string > ) ; getTokens: ( ( ) => Promise < any > ) ; getTokensByOwnerAddress: ( ( ownerAddress: string ) => Promise < any > ) ; } ; write: { mint: ( ( __namedParameters: { mintCost: { value: any ; } ; timestamp: number ; } ) => Promise < { tokenId: any ; tx: any ; } > ) ; transfer: ( ( __namedParameters: { RLITokenAddress: string ; fromAddress: string ; toAddress: string ; } ) => Promise < any > ) ; } ; } = ...
Type declaration
read: { getCapacityByIndex: ( ( index: number ) => Promise < any > ) ; getTokenURIByIndex: ( ( index: number ) => Promise < string > ) ; getTokens: ( ( ) => Promise < any > ) ; getTokensByOwnerAddress: ( ( ownerAddress: string ) => Promise < any > ) ; }
get Capacity By Index: ( ( index: number ) => Promise < any > )
( index: number ) : Promise < any >
Returns Promise < any >
get TokenURIBy Index: ( ( index: number ) => Promise < string > )
( index: number ) : Promise < string >
Returns Promise < string >
get Tokens: ( ( ) => Promise < any > )
( ) : Promise < any >
Returns Promise < any >
get Tokens By Owner Address: ( ( ownerAddress: string ) => Promise < any > )
( ownerAddress: string ) : Promise < any >
Returns Promise < any >
write: { mint: ( ( __namedParameters: { mintCost: { value: any ; } ; timestamp: number ; } ) => Promise < { tokenId: any ; tx: any ; } > ) ; transfer: ( ( __namedParameters: { RLITokenAddress: string ; fromAddress: string ; toAddress: string ; } ) => Promise < any > ) ; }
mint: ( ( __namedParameters: { mintCost: { value: any ; } ; timestamp: number ; } ) => Promise < { tokenId: any ; tx: any ; } > )
( __namedParameters: { mintCost: { value: any ; } ; timestamp: number ; } ) : Promise < { tokenId: any ; tx: any ; } >
Parameters
__namedParameters: { mintCost: { value: any ; } ; timestamp: number ; }
mint Cost: { value: any ; }
timestamp: number
Returns Promise < { tokenId: any ; tx: any ; } >
transfer: ( ( __namedParameters: { RLITokenAddress: string ; fromAddress: string ; toAddress: string ; } ) => Promise < any > )
( __namedParameters: { RLITokenAddress: string ; fromAddress: string ; toAddress: string ; } ) : Promise < any >
Parameters
__namedParameters: { RLITokenAddress: string ; fromAddress: string ; toAddress: string ; }
RLIToken Address: string
from Address: string
to Address: string
Returns Promise < any >
router Contract Util
router Contract Util: { read: {} ; write: {} ; } = ...
staking Contract
staking Contract: { read: ContractContext ; write: ContractContext ; }
Type declaration
read: ContractContext
write: ContractContext
utils
utils: { decToHex: any ; getBytes32FromMultihash: ( ( ipfsId: string ) => any ) ; getBytesFromMultihash: ( ( multihash: string ) => string ) ; getMultihashFromBytes: ( ( byte32: string ) => string ) ; hexToDec: any ; timestamp2Date: ( ( timestamp: string ) => string ) ; } = ...
Type declaration
dec To Hex: any
get Bytes32 From Multihash: ( ( ipfsId: string ) => any )
( ipfsId: string ) : any
Returns any
get Bytes From Multihash: ( ( multihash: string ) => string )
( multihash: string ) : string
Returns string
get Multihash From Bytes: ( ( byte32: string ) => string )
( byte32: string ) : string
Returns string
hex To Dec: any
timestamp2 Date: ( ( timestamp: string ) => string )
( timestamp: string ) : string
Returns string
(IERC721Enumerable)
Get the x latest number of tokens
Returns
a list of PKP NFTs