Skip to content

Commit

Permalink
Merge pull request #81 from holaplex/abdul/open-drop
Browse files Browse the repository at this point in the history
Open Drop API events
  • Loading branch information
imabdulbasit authored Sep 12, 2023
2 parents 3e88d28 + 45379cb commit d19b873
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 38 deletions.
15 changes: 10 additions & 5 deletions nfts.proto
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,11 @@ message NftEvents {
CreateEditionTransaction polygon_retry_drop = 23;
MintEditionTransaction polygon_retry_mint_drop = 24;
TransferPolygonAsset polygon_transfer_asset = 25;
MetaplexMasterEditionTransaction solana_create_drop = 26;
MetaplexMasterEditionTransaction solana_retry_drop = 27;
MetaplexMasterEditionTransaction solana_update_drop = 28;
MintMetaplexEditionTransaction solana_mint_drop = 29;
MintMetaplexEditionTransaction solana_retry_mint_drop = 30;
MetaplexMasterEditionTransaction solana_create_edition_drop = 26;
MetaplexMasterEditionTransaction solana_retry_edition_drop = 27;
MetaplexMasterEditionTransaction solana_update_edition_drop = 28;
MintMetaplexEditionTransaction solana_mint_edition_drop = 29;
MintMetaplexEditionTransaction solana_retry_mint_edition_drop = 30;
TransferMetaplexAssetTransaction solana_transfer_asset = 31;
MetaplexMasterEditionTransaction solana_create_collection = 32;
MetaplexMasterEditionTransaction solana_update_collection = 33;
Expand All @@ -242,5 +242,10 @@ message NftEvents {
RetryUpdateSolanaMintPayload solana_retry_updated_collection_mint = 42;
SolanaUpdatedMintPayload solana_mint_updated = 43;
SwitchCollectionPayload solana_switch_mint_collection_requested = 44;
MetaplexMasterEditionTransaction solana_create_open_drop = 45;
MetaplexMasterEditionTransaction solana_retry_open_drop = 46;
MetaplexMasterEditionTransaction solana_update_open_drop = 47;
MintMetaplexMetadataTransaction solana_mint_open_drop = 48;
MintMetaplexMetadataTransaction solana_retry_mint_open_drop = 49;
}
}
63 changes: 35 additions & 28 deletions solana_nfts.proto
Original file line number Diff line number Diff line change
Expand Up @@ -26,33 +26,26 @@ message SolanaCompletedMintTransaction {
string address = 2;
}

message SolanaCompletedTransferTransaction {
string signature = 1;
}
message SolanaCompletedTransferTransaction { string signature = 1; }

message SolanaCompletedUpdateTransaction {
string signature = 1;
}
message SolanaCompletedUpdateTransaction { string signature = 1; }

message SolanaFailedTransaction {
SolanaTransactionFailureReason reason = 1;
}
message SolanaFailedTransaction { SolanaTransactionFailureReason reason = 1; }

message MintOwnershipUpdate {
string mint_address = 1;
string mint_address = 1;
string sender = 2;
string recipient = 3;
string tx_signature = 5;
}


message SolanaCollectionPayload {
optional uint32 supply = 2;
string mint_address = 3;
uint32 seller_fee_basis_points = 4;
repeated SolanaCreator creators = 5;
Metadata metadata = 6;
repeated File files = 7;
repeated File files = 7;
string update_authority = 8;
}

Expand Down Expand Up @@ -93,27 +86,26 @@ message SolanaMintPayload {
Metadata metadata = 10;
}


message SolanaNftEvents {
oneof event {
SolanaPendingTransaction create_drop_signing_requested = 1;
SolanaPendingTransaction update_drop_signing_requested = 2;
SolanaPendingTransaction mint_drop_signing_requested = 3;
SolanaPendingTransaction create_edition_drop_signing_requested = 1;
SolanaPendingTransaction update_edition_drop_signing_requested = 2;
SolanaPendingTransaction mint_edition_drop_signing_requested = 3;
SolanaPendingTransaction transfer_asset_signing_requested = 4;
SolanaPendingTransaction retry_create_drop_signing_requested = 5;
SolanaPendingTransaction retry_mint_drop_signing_requested = 6;
SolanaCompletedMintTransaction create_drop_submitted = 7;
SolanaCompletedUpdateTransaction update_drop_submitted = 8;
SolanaCompletedMintTransaction mint_drop_submitted = 9;
SolanaPendingTransaction retry_create_edition_drop_signing_requested = 5;
SolanaPendingTransaction retry_mint_edition_drop_signing_requested = 6;
SolanaCompletedMintTransaction create_edition_drop_submitted = 7;
SolanaCompletedUpdateTransaction update_edition_drop_submitted = 8;
SolanaCompletedMintTransaction mint_edition_drop_submitted = 9;
SolanaCompletedTransferTransaction transfer_asset_submitted = 10;
SolanaCompletedMintTransaction retry_create_drop_submitted = 11;
SolanaCompletedMintTransaction retry_mint_drop_submitted = 12;
SolanaFailedTransaction create_drop_failed = 13;
SolanaFailedTransaction update_drop_failed = 14;
SolanaFailedTransaction mint_drop_failed = 15;
SolanaCompletedMintTransaction retry_create_edition_drop_submitted = 11;
SolanaCompletedMintTransaction retry_mint_edition_drop_submitted = 12;
SolanaFailedTransaction create_edition_drop_failed = 13;
SolanaFailedTransaction update_edition_drop_failed = 14;
SolanaFailedTransaction mint_edition_drop_failed = 15;
SolanaFailedTransaction transfer_asset_failed = 16;
SolanaFailedTransaction retry_create_drop_failed = 17;
SolanaFailedTransaction retry_mint_drop_failed = 18;
SolanaFailedTransaction retry_create_edition_drop_failed = 17;
SolanaFailedTransaction retry_mint_edition_drop_failed = 18;
MintOwnershipUpdate update_mint_owner = 19;
SolanaPendingTransaction create_collection_signing_requested = 20;
SolanaCompletedMintTransaction create_collection_submitted = 21;
Expand Down Expand Up @@ -141,5 +133,20 @@ message SolanaNftEvents {
SolanaPendingTransaction switch_mint_collection_signing_requested = 43;
SolanaFailedTransaction switch_mint_collection_failed = 44;
SolanaCompletedUpdateTransaction switch_mint_collection_submitted = 45;
SolanaPendingTransaction create_open_drop_signing_requested = 46;
SolanaPendingTransaction update_open_drop_signing_requested = 47;
SolanaPendingTransaction mint_open_drop_signing_requested = 48;
SolanaPendingTransaction retry_create_open_drop_signing_requested = 49;
SolanaPendingTransaction retry_mint_open_drop_signing_requested = 50;
SolanaCompletedMintTransaction create_open_drop_submitted = 51;
SolanaCompletedUpdateTransaction update_open_drop_submitted = 52;
SolanaCompletedMintTransaction mint_open_drop_submitted = 53;
SolanaCompletedMintTransaction retry_create_open_drop_submitted = 54;
SolanaCompletedMintTransaction retry_mint_open_drop_submitted = 55;
SolanaFailedTransaction create_open_drop_failed = 56;
SolanaFailedTransaction update_open_drop_failed = 57;
SolanaFailedTransaction mint_open_drop_failed = 58;
SolanaFailedTransaction retry_create_open_drop_failed = 59;
SolanaFailedTransaction retry_mint_open_drop_failed = 60;
}
}
15 changes: 10 additions & 5 deletions treasury.proto
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ message TreasuryEvents {
MintTransfered mint_transfered = 10;
DropMinted mint_retried = 11;
DropCreated drop_retried = 12;
SolanaTransactionResult solana_create_drop_signed = 13;
SolanaTransactionResult solana_retry_create_drop_signed = 14;
SolanaTransactionResult solana_update_drop_signed = 15;
SolanaTransactionResult solana_mint_drop_signed = 16;
SolanaTransactionResult solana_retry_mint_drop_signed = 17;
SolanaTransactionResult solana_create_edition_drop_signed = 13;
SolanaTransactionResult solana_retry_create_edition_drop_signed = 14;
SolanaTransactionResult solana_update_edition_drop_signed = 15;
SolanaTransactionResult solana_mint_edition_drop_signed = 16;
SolanaTransactionResult solana_retry_mint_edition_drop_signed = 17;
SolanaTransactionResult solana_transfer_asset_signed = 18;
PolygonTransactionResult polygon_create_drop_txn_submitted = 19;
PolygonPermitHashSignature polygon_permit_transfer_token_hash_signed = 20;
Expand All @@ -145,5 +145,10 @@ message TreasuryEvents {
SolanaTransactionResult solana_update_collection_mint_signed = 31;
SolanaTransactionResult solana_retry_update_collection_mint_signed = 32;
SolanaTransactionResult solana_switch_mint_collection_signed = 33;
SolanaTransactionResult solana_create_open_drop_signed = 34;
SolanaTransactionResult solana_retry_create_open_drop_signed = 35;
SolanaTransactionResult solana_update_open_drop_signed = 36;
SolanaTransactionResult solana_mint_open_drop_signed = 37;
SolanaTransactionResult solana_retry_mint_open_drop_signed = 38;
}
}

0 comments on commit d19b873

Please sign in to comment.