All Projects → enjin → enjin-cpp-sdk

enjin / enjin-cpp-sdk

Licence: Apache-2.0 license
Enjin Platform SDK for C++.

Programming Languages

C++
36643 projects - #6 most used programming language
CMake
9771 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to enjin-cpp-sdk

enjin-java-sdk
Enjin Platform SDK for Java.
Stars: ✭ 32 (+113.33%)
Mutual labels:  nft, blockchain-sdk, nfts, enjin-platform, non-fungible-tokens, enjin-sdk
opensea automatic uploader
(Bypass reCAPTCHAs) A Selenium Python bot to automatically and bulky upload and list your NFTs on OpenSea (all metadata integrated - Ethereum and Polygon supported); reCAPTCHA solver & bypasser included.
Stars: ✭ 205 (+1266.67%)
Mutual labels:  nft, nfts
samila
Generative Art Generator
Stars: ✭ 750 (+4900%)
Mutual labels:  nft, nfts
CryptoPunks
Subgraph for the Cryptopunks marketplace
Stars: ✭ 37 (+146.67%)
Mutual labels:  nft, nfts
Awesome NFTs
A curated collection about NFTs - by bt3gl
Stars: ✭ 42 (+180%)
Mutual labels:  nft, nfts
nft-collection-generator
Generates images and metadata for a collection of NFTs.
Stars: ✭ 77 (+413.33%)
Mutual labels:  nft, nfts
opensea-scraper
Scrapes nft floor prices and additional information from opensea. Used for https://nftfloorprice.info
Stars: ✭ 129 (+760%)
Mutual labels:  nft, nfts
incomplete-guide-to-imx
An attempt to TLDR; Layer 2 development with IMX.
Stars: ✭ 29 (+93.33%)
Mutual labels:  nft, nfts
air-support
Airdrop automation tools for Solana from The Skeleton Crew
Stars: ✭ 112 (+646.67%)
Mutual labels:  nft, nfts
wordpress-nft-plugin
NFT Auction Product Type WordPress Plugin for WooCommerce – BID HAUS
Stars: ✭ 197 (+1213.33%)
Mutual labels:  nft, nfts
fnd-docs
Foundation developer docs
Stars: ✭ 33 (+120%)
Mutual labels:  nft, nfts
Axie Infinity Extras
Here are all the websites and projects that are useful if you are an Axie Infinity player. If you find some projects that are not on the list, feel free to make a pull request!
Stars: ✭ 13 (-13.33%)
Mutual labels:  nft, nfts
metaboss
The Metaplex NFT-standard Swiss Army Knife tool.
Stars: ✭ 575 (+3733.33%)
Mutual labels:  nft
carbon-footprint
Calculate your carbon footprint 🏭👣 from food, transport, purchases, fashion, electricity and digital activities like streaming, NFT or blockchain.
Stars: ✭ 59 (+293.33%)
Mutual labels:  nft
erc721-extensions
A set of composable extension contracts for the OpenZeppelin ERC721 base contracts.
Stars: ✭ 157 (+946.67%)
Mutual labels:  nfts
enjincraft
Minecraft plugin for integration with the Enjin Platform.
Stars: ✭ 57 (+280%)
Mutual labels:  enjin-platform
dungeons-and-dragons-nft
#chainlink #nft
Stars: ✭ 583 (+3786.67%)
Mutual labels:  nft
awesome-defi
Curated list of awesome DeFi protocols, dapps, wallets and other resources
Stars: ✭ 36 (+140%)
Mutual labels:  nft
metaplex
A directory of what the Metaplex Foundation works on!
Stars: ✭ 3,233 (+21453.33%)
Mutual labels:  nft
opensea-images-downloader
Script to download all the images from an opensea collection using the OpenSea API
Stars: ✭ 42 (+180%)
Mutual labels:  nft

Blockchain SDK by Enjin for C++

Build & Test Linux Build & Test Windows

Create blockchain video games and applications using the C++ programming language.

Learn more about the Enjin blockchain platform.

Sign up to Enjin Cloud: Goerli (Testnet), Mainnet (Production) or JumpNet.

Resources

Table of Contents

Compatibility

The Enjin C++ SDK is a C++17 library and is developed with cross-platform usage in mind. Platform and compiler combinations tested are as follows:

  • GCC 9.3.0 on Linux (64-bit)
  • Clang 10.0.0 on Linux (64-bit)
  • MSVC 2019 on Windows 10 (64-bit)

Installation

Conan

Recipes for this SDK are available on Conan Center for installation and package management.

Manual

The SDK may be built as a static or shared (dynamic) library. Use the ENJINSDK_BUILD_SHARED CMake argument to build as a shared library and set it to "on" (off by default).

The following dependencies are used for building the SDK:

The following libraries are used by the SDK for some of its functionality and must be locatable by CMake's find_package() function, however these libraries are not necessary to link to your own target to use this SDK:

To have the SDK build its default HTTP and websocket clients use the ENJINSDK_BUILD_DEFAULT_HTTP and ENJINSDK_BUILD_DEFAULT_WEBSOCKET as CMake arguments and set them to be "on" (off by default).

To utilize this SDK you may clone it into your project tree with:

$ git clone https://github.com/enjin/enjin-cpp-sdk.git

Then use the following in your project's CMakeLists file:

add_subdirectory(enjin-cpp-sdk)
target_link_libraries(my_target PRIVATE enjinsdk::enjinsdk)

Linux

Alternatively, on Linux you may include the SDK in your project by cloning and building it with the following commands:

$ git clone https://github.com/enjin/enjin-cpp-sdk.git
$ cmake ./enjin-cpp-sdk [options] && make -j -C ./enjin-cpp-sdk

From here, you may use CMake's find_package() function to find enjinsdk and link the library, enjinsdk::enjinsdk to your target.

Tests

For running unit tests in manual installations, Git (1.6.5+) is required to run CMake's ExternalProject_Add() function to acquire Googletest (1.10.0+) for the testing framework.

To have the test executable built, set the CMake argument ENJINSDK_BUILD_TESTS to ON and leave the BUILD_TESTING option from CTest enabled.

Quick Start

This example showcases how to quickly create and authenticate a client on the project schema which will then allow us to make further requests to the platform.

#include "enjinsdk/EnjinHosts.hpp"
#include "enjinsdk/ProjectClient.hpp"
#include <iostream>
#include <memory>

using namespace enjin::sdk;
using namespace enjin::sdk::graphql;
using namespace enjin::sdk::models;
using namespace enjin::sdk::project;

int main() {
    // Builds the project client to run on the Goerli test network.
    // See: https://goerli.cloud.enjin.io to sign up for the test network.
    std::unique_ptr<ProjectClient> client = ProjectClient::builder()
        .base_uri(EnjinHosts::Goerli)
        .build();

    // Creates the request to authenticate the client.
    // Replace the appropriate strings with the project's UUID and secret.
    AuthProject req = AuthProject()
        .set_uuid("<the-project's-uuid>")
        .set_secret("<the-project's-secret>");

    // Sends the request to the platform and gets the response.
    GraphqlResponse<AccessToken> res = client->auth_project(req).get();

    // Checks if the request was successful.
    if (!res.is_successful()) {
        std::cout << "AuthProject request failed" << std::endl;
        return 0;
    }

    // Authenticates the client with the access token in the response.
    client->auth(res.get_result().value().get_token().value());

    // Checks if the client was authenticated.
    if (client->is_authenticated()) {
        std::cout << "Client is now authenticated" << std::endl;
    } else {
        std::cout << "Client was not authenticated" << std::endl;
    }

    return 0;
}

Contributing

Contributions to the SDK are appreciated!

Issues

You can open issues for bugs and enhancement requests.

When reporting bugs, please state the OS, compiler, and CMake arguments used as well as reproducible examples if possible.

Pull Requests

If you make any changes or improvements to the SDK, which you believe are beneficial to others, consider making a pull request to merge your changes to be included in the next release.

Ensure that tests are passing when running the target enjinsdk_tests and add any necessary test classes or test cases for your code.

Be sure to include your name in the list of contributors.

Copyright and Licensing

The license summary below may be copied.

Copyright 2021 Enjin Pte. Ltd.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].