-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
928ea1c
commit e6b05b2
Showing
6 changed files
with
68 additions
and
3 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
database/migrations/2023_06_27_014433_add_collection_chain_id_to_beam_batches_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
return new class () extends Migration { | ||
/** | ||
* Run the migrations. | ||
*/ | ||
public function up(): void | ||
{ | ||
Schema::table('beam_batches', function (Blueprint $table) { | ||
$table->string('collection_chain_id')->index()->nullable()->after('transaction_id'); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
*/ | ||
public function down(): void | ||
{ | ||
Schema::table('beam_batches', function (Blueprint $table) { | ||
$table->dropColumn('collection_chain_id'); | ||
}); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace Enjin\Platform\Beam\Events; | ||
|
||
use Enjin\Platform\Beam\Channels\PlatformBeamChannel; | ||
use Enjin\Platform\Channels\PlatformAppChannel; | ||
use Enjin\Platform\Events\PlatformBroadcastEvent; | ||
|
||
class BeamBatchTransactionCreated extends PlatformBroadcastEvent | ||
{ | ||
/** | ||
* Creates a new event instance. | ||
*/ | ||
public function __construct($collectionId, $transactionId) | ||
{ | ||
parent::__construct(); | ||
|
||
$this->broadcastData = [ | ||
'collectionId' => $collectionId, | ||
'transactionId' => $transactionId, | ||
]; | ||
|
||
$this->broadcastChannels = [ | ||
new PlatformAppChannel(), | ||
new PlatformBeamChannel(), | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters