Interfaces and Abstract Contracts
VWBL NFT contract inherets AbstractVWBLSettings. This contract defines functions which have something to do with VWBL-Network.
Fee
The current VWBL fee value can be obtained by executing the getFee()
function. For more information on fee, click here.
Gateway Address
The current Gateway Address can be obtained by executing the getGatewayAddress()
function. Gateway Address is the address where VWBL Gateway Smart Contract is deployed.
Sign Message
The sign message is the string signed to prove that signer is a particular wallet address when minting a VWBL NFT or decrypting the encrypted metadata of a VWBL NFT. The signMessage
is the variables that consist of the sign message. The current signMessage
can be obtained by executing the getSignMessage()
function. You can set any string to the sign message by executing the setSignMessage()
function.
VWBL Network makes a formatted and finalized sign message by using mustache, a template engine. When you set a string that includes , the VWBL Network creates a sign message with a nonce valid only once for each user.
If the value of signMessage
is Hello VWBL {{nonce}}
, the sign message looks like the following picture. "27" will never be shown again after you sign this sign message.
While this increases security, it also worsens the UX as end users are required to sign when minting a VWBL NFT or decrypting its encrypted metadata.
Allow Origins
allowOrigins
is a string variable used by contract owner to indicate that a particular origin is an official site. When the value of signMessage
is 'Hello VWBL' and you does not set any value to allowOrigins
, the sign message is 'Hello VWBL'.
If you set 'https://example.com' to allowOrigins
, the sign message looks like the following picture.
If you set 'https://example.com, https://example2.com' to allowOrigins
, the sign message looks like the following picture.To show multiple origins in the sign message, please use comma delimiters between the origins.