Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inscription Implementation for Laravel/PHP #17

Merged
merged 4 commits into from
Jan 7, 2024

Conversation

mattsmithies
Copy link
Collaborator

Overview

This provides inscription capibility for PHP, you can view the tests where appropriate but the features mirror the inscription API for:

  • deploying
  • minting
  • burning
  • transferring

Every response through the Inscription methods will return a InscriptionResponse object that includes the raw inscription data and related consensus message ids for storage.

Deploy

The constructor expects the default values, you can set private topics or memo/metadata/limits as appropriate for any particular inscriptionRequest class.

$deploy = new DeployInscription('TICK1', 'Ticker', 300);
$deploy->setPrivateTopic(self::$TOPIC_ID);

$minted = LaravelHashgraph::deployInscription($deploy);

Mint

$mint = new MintInscription('TICK1', '0.0.1', 1);
$mint->setPrivateTopic(self::$TOPIC_ID);

$minted = LaravelHashgraph::mintInscription($mint);

Burn

$burn = new BurnInscription('TICK1', '0.0.1', 1);
$burn->setPrivateTopic(self::$TOPIC_ID);

$minted = LaravelHashgraph::burnInscription($burn);

Transfer

$transfer = new TransferInscription('TICK1', '0.0.1', '0.0.2', 1);
$transfer->setPrivateTopic(self::$TOPIC_ID);

$minted = LaravelHashgraph::transferInscription($transfer);

@mattsmithies mattsmithies merged commit 4e48377 into master Jan 7, 2024
2 of 4 checks passed
@mattsmithies mattsmithies deleted the feature/inscriptions-php branch January 7, 2024 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant