Skip to content

MetaFabInc/metafab-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust API client for metafab

Complete MetaFab API references and guides can be found at: https://trymetafab.com

For more information, please visit https://trymetafab.com

Overview

This API client was generated by the OpenAPI Generator project. By using the openapi-spec from a remote server, you can easily generate an API client.

  • API version: 1.5.1
  • Package version: 1.5.1
  • Build package: org.openapitools.codegen.languages.RustClientCodegen

Installation

Put the package under your project folder in a directory named metafab and add the following to Cargo.toml under [dependencies]:

metafab = { path = "./metafab" }

Documentation for API Endpoints

All URIs are relative to https://api.trymetafab.com

Class Method HTTP request Description
ContractsApi create_contract POST /v1/contracts Create custom contract
ContractsApi get_contracts GET /v1/contracts Get contracts
ContractsApi read_contract GET /v1/contracts/{contractId}/reads Read contract data
ContractsApi transfer_contract_ownership POST /v1/contracts/{contractId}/owners Transfer contract ownership
ContractsApi upgrade_contract_trusted_forwarder POST /v1/contracts/{contractId}/forwarders Upgrade contract trusted forwarder
ContractsApi write_contract POST /v1/contracts/{contractId}/writes Write contract data
CurrenciesApi batch_transfer_currency POST /v1/currencies/{currencyId}/batchTransfers Batch transfer currency
CurrenciesApi burn_currency POST /v1/currencies/{currencyId}/burns Burn currency
CurrenciesApi create_currency POST /v1/currencies Create currency
CurrenciesApi get_currencies GET /v1/currencies Get currencies
CurrenciesApi get_currency_balance GET /v1/currencies/{currencyId}/balances Get currency balance
CurrenciesApi get_currency_fees GET /v1/currencies/{currencyId}/fees Get currency fees
CurrenciesApi get_currency_role GET /v1/currencies/{currencyId}/roles Get currency role
CurrenciesApi grant_currency_role POST /v1/currencies/{currencyId}/roles Grant currency role
CurrenciesApi mint_currency POST /v1/currencies/{currencyId}/mints Mint currency
CurrenciesApi revoke_currency_role DELETE /v1/currencies/{currencyId}/roles Revoke currency role
CurrenciesApi set_currency_fees POST /v1/currencies/{currencyId}/fees Set currency fees
CurrenciesApi transfer_currency POST /v1/currencies/{currencyId}/transfers Transfer currency
EcosystemsApi approve_ecosystem_game POST /v1/ecosystems/{ecosystemId}/games Approve ecosystem game
EcosystemsApi auth_ecosystem GET /v1/ecosystems/auth Authenticate ecosystem
EcosystemsApi auth_profile GET /v1/profiles/auth Authenticate profile
EcosystemsApi auth_profile_player GET /v1/profiles/{profileId}/games/{gameId}/players/auth Authenticate profile player
EcosystemsApi create_ecosystem POST /v1/ecosystems Create ecosystem
EcosystemsApi create_profile POST /v1/profiles Create profile
EcosystemsApi create_profile_player POST /v1/profiles/{profileId}/games/{gameId}/players Create profile player
EcosystemsApi get_ecosystem GET /v1/ecosystems/{ecosystemId} Get ecosystem
EcosystemsApi get_ecosystem_game GET /v1/ecosystems/{ecosystemId}/games/{gameId} Get ecosystem game
EcosystemsApi get_ecosystem_games GET /v1/ecosystems/{ecosystemId}/games Get ecosystem games
EcosystemsApi get_profile_game GET /v1/profiles/{profileId}/games/{gameId} Get profile game
EcosystemsApi get_profile_games GET /v1/profiles/{profileId}/games Get profile games
EcosystemsApi unapprove_ecosystem_game DELETE /v1/ecosystems/{ecosystemId}/games/{gameId} Unapprove ecosystem game
EcosystemsApi update_ecosystem PATCH /v1/ecosystems/{ecosystemId} Update ecosystem
EcosystemsApi update_profile PATCH /v1/profiles/{profileId} Update profile
EcosystemsApi update_profile_player PATCH /v1/profiles/{profileId}/games/{gameId}/players/{playerId} Update profile player
GamesApi auth_game GET /v1/games/auth Authenticate game
GamesApi create_game POST /v1/games Create game
GamesApi get_game GET /v1/games/{gameId} Get game
GamesApi update_game PATCH /v1/games/{gameId} Update game
ItemsApi batch_mint_collection_items POST /v1/collections/{collectionId}/batchMints Batch mint collection items
ItemsApi batch_transfer_collection_items POST /v1/collections/{collectionId}/batchTransfers Batch transfer collection items
ItemsApi burn_collection_item POST /v1/collections/{collectionId}/items/{collectionItemId}/burns Burn collection item
ItemsApi create_collection POST /v1/collections Create collection
ItemsApi create_collection_item POST /v1/collections/{collectionId}/items Create collection item
ItemsApi get_collection_approval GET /v1/collections/{collectionId}/approvals Get collection approval
ItemsApi get_collection_item GET /v1/collections/{collectionId}/items/{collectionItemId} Get collection item
ItemsApi get_collection_item_balance GET /v1/collections/{collectionId}/items/{collectionItemId}/balances Get collection item balance
ItemsApi get_collection_item_balances GET /v1/collections/{collectionId}/balances Get collection item balances
ItemsApi get_collection_item_supplies GET /v1/collections/{collectionId}/supplies Get collection item supplies
ItemsApi get_collection_item_supply GET /v1/collections/{collectionId}/items/{collectionItemId}/supplies Get collection item supply
ItemsApi get_collection_item_timelock GET /v1/collections/{collectionId}/items/{collectionItemId}/timelocks Get collection item timelock
ItemsApi get_collection_items GET /v1/collections/{collectionId}/items Get collection items
ItemsApi get_collection_role GET /v1/collections/{collectionId}/roles Get collection role
ItemsApi get_collections GET /v1/collections Get collections
ItemsApi grant_collection_role POST /v1/collections/{collectionId}/roles Grant collection role
ItemsApi mint_collection_item POST /v1/collections/{collectionId}/items/{collectionItemId}/mints Mint collection item
ItemsApi revoke_collection_role DELETE /v1/collections/{collectionId}/roles Revoke collection role
ItemsApi set_collection_approval POST /v1/collections/{collectionId}/approvals Set collection approval
ItemsApi set_collection_item_timelock POST /v1/collections/{collectionId}/items/{collectionItemId}/timelocks Set collection item timelock
ItemsApi transfer_collection_item POST /v1/collections/{collectionId}/items/{collectionItemId}/transfers Transfer collection item
LootboxesApi create_lootbox_manager POST /v1/lootboxManagers Create lootbox manager
LootboxesApi get_lootbox_manager_lootbox GET /v1/lootboxManagers/{lootboxManagerId}/lootboxes/{lootboxManagerLootboxId} Get lootbox manager lootbox
LootboxesApi get_lootbox_manager_lootboxes GET /v1/lootboxManagers/{lootboxManagerId}/lootboxes Get lootbox manager lootboxes
LootboxesApi get_lootbox_managers GET /v1/lootboxManagers Get lootbox managers
LootboxesApi open_lootbox_manager_lootbox POST /v1/lootboxManagers/{lootboxManagerId}/lootboxes/{lootboxManagerLootboxId}/opens Open lootbox manager lootbox
LootboxesApi remove_lootbox_manager_lootbox DELETE /v1/lootboxManagers/{lootboxManagerId}/lootboxes/{lootboxManagerLootboxId} Remove lootbox manager lootbox
LootboxesApi set_lootbox_manager_lootbox POST /v1/lootboxManagers/{lootboxManagerId}/lootboxes Set lootbox manager lootbox
PlayersApi auth_player GET /v1/players/auth Authenticate player
PlayersApi create_player POST /v1/players Create player
PlayersApi get_player GET /v1/players/{playerId} Get player
PlayersApi get_player_data GET /v1/players/{playerId}/data Get player data
PlayersApi get_players GET /v1/players Get players
PlayersApi remove_player_connected_wallet DELETE /v1/players/{playerId}/wallets/{playerWalletId} Remove player connected wallet
PlayersApi set_player_connected_wallet POST /v1/players/{playerId}/wallets Set player connected wallet
PlayersApi set_player_data POST /v1/players/{playerId}/data Set player data
PlayersApi update_player PATCH /v1/players/{playerId} Update player
ShopsApi create_shop POST /v1/shops Create shop
ShopsApi get_shop_offer GET /v1/shops/{shopId}/offers/{shopOfferId} Get shop offer
ShopsApi get_shop_offers GET /v1/shops/{shopId}/offers Get shop offers
ShopsApi get_shops GET /v1/shops Get shops
ShopsApi remove_shop_offer DELETE /v1/shops/{shopId}/offers/{shopOfferId} Remove shop offer
ShopsApi set_shop_offer POST /v1/shops/{shopId}/offers Set shop offer
ShopsApi use_shop_offer POST /v1/shops/{shopId}/offers/{shopOfferId}/uses Use shop offer
ShopsApi withdraw_from_shop POST /v1/shops/{shopId}/withdrawals Withdraw from shop
TransactionsApi get_transaction GET /v1/transactions/{transactionId} Get transaction
WalletsApi create_wallet_signature POST /v1/wallets/{walletId}/signatures Create wallet signature
WalletsApi get_wallet GET /v1/wallets/{walletId} Get wallet
WalletsApi get_wallet_balances GET /v1/wallets/{walletId}/balances Get wallet balances
WalletsApi get_wallet_transactions GET /v1/wallets/{walletId}/transactions Get wallet transactions

Documentation For Models

To get access to the crate's generated documentation, use:

cargo doc --open

Author

metafabproject@gmail.com

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors