Esempio n. 1
0
        public async Task <string> QueryTokenURI(BigInteger tokenId)
        {
            var supply = await SimpleContractQueries.QueryStringOutput(new Queries.TokenURI {
                TokenId = tokenId
            }, ContractAddress, null);

            return(supply?.Value);
        }
Esempio n. 2
0
        public override EthCallPromise <string> QuerySymbol()
        {
            EthCallPromise <string> promise = new EthCallPromise <string>();

            SimpleContractQueries.QueryStringOutput(new Queries.Symbol(), ContractAddress, null)
            .OnSuccess(symbol => promise.Build(() => symbol?.Value))
            .OnError(error => promise.Build(() => "error", () => error));

            return(promise);
        }
Esempio n. 3
0
    public override EthCallPromise <string> QueryName()
    {
        EthCallPromise <string> promise = new EthCallPromise <string>();

        SimpleContractQueries.QueryStringOutput <Queries.Name>(ContractAddress, null)
        .OnSuccess(name => promise.Build(() => name?.Value))
        .OnError(error => promise.Build(() => "error", () => error));

        return(promise);
    }
Esempio n. 4
0
        public EthCallPromise <string> QueryTokenURI(BigInteger tokenId)
        {
            EthCallPromise <string> promise = new EthCallPromise <string>();

            SimpleContractQueries.QueryStringOutput(new Queries.TokenURI {
                TokenId = tokenId
            }, ContractAddress, null)
            .OnSuccess(uri => promise.Build(() => uri.Value))
            .OnError(error => promise.Build(() => "error", () => error));

            return(promise);
        }
Esempio n. 5
0
        public override async Task <string> QuerySymbol()
        {
            var symbol = await SimpleContractQueries.QueryStringOutput(new Queries.Symbol(), ContractAddress, null);

            return(symbol?.Value);
        }
Esempio n. 6
0
        public override async Task <string> QueryName()
        {
            var name = await SimpleContractQueries.QueryStringOutput(new Queries.Name(), ContractAddress, null);

            return(name?.Value);
        }