Entrance Contract

Contract Interface

//Function: Determine whether the private contract space with addr
//as the basic parameter already exists; if it exists, return TRUE;
//Among them, v r s deadline is the parameter signature information provided by the
//front end;
   function vaultHasRegister(
        address addr,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external view returns (bool);

//Function: Use addr as the basic parameter to initialize the private storage space
//The v r s deadline is the parameter signature information provided by the front end;
    function initPrivateVault(
        address addr,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (bool);

//Function: Store the user's data content data and label in the private contract space
//deployed with addr as the basic parameter; at the same time complete the token casting,
//The receiving address of the token is received by the receiver; the v r s deadline 
//is the parameter signature information provided by the front end;
    function savePrivateDataWithMinting(
        address addr,
        string memory data,
        string memory cryptoLabel,
        address labelHash,
        address receiver,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

//Function: Store the user's data content data and label in the private contract space
//deployed with addr as the basic parameter; do not participate in token casting;
//The v r s deadline is the parameter signature information provided by the front end;
    function savePrivateDataWithoutMinting(
        address addr,
        string memory data,
        string memory cryptoLabel,
        address labelHash,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

//Function: According to the user's storage order (specified by the index parameter),
// query the user's storage content;
//The v r s deadline is the parameter signature information provided by the front end;
    function queryPrivateDataByIndex(
        address addr,
        uint64 index,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external view returns (string memory);

//Function: Query the user's storage content according to the label name specified by
//the user for the storage content (specified by the labelHash parameter);
//The v r s deadline is the parameter signature information provided by the front end;
    function queryPrivateDataByName(
        address addr,
        address labelHash,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external view returns (string memory);

//Function: Determine whether the current private storage space has participated in 
//the token casting; if it has participated, return TRUE;
//The v r s deadline is the parameter signature information provided by the front end;
    function hasMinted(
        address addr,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external view returns (bool);

//Function: The user queries how many pieces of content have been stored in his 
// private storage space;
//The v r s deadline is the parameter signature information provided by the front end;
    function totalSavedItems(
        address addr,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external view returns (uint64);

//Function: Obtain the label name corresponding to the stored content 
//according to the user's storage order (specified by index);
//The v r s deadline is the parameter signature information provided by the front end;
    function getLabelNameByIndex(
        address addr,
        uint256 deadline,
        uint64 index,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external view returns (string memory);

//Function: Use addr as the basic parameter to query the user's private storage address;
//The v r s deadline is the parameter signature information provided by the front end;
    function queryPrivateVaultAddress(
        address addr,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external view returns (address);

//Function: Determine whether a label has been used in the user's private storage contract; 
//if it has been used, return TRUE;
//The v r s deadline is the parameter signature information provided by the front end;
    function labelExist(
        address addr,
        address labelHash,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external view returns (bool);

Contract Address

Last updated