-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
36 lines (33 loc) · 1 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/**
* @link https://coinsence.org/
* @copyright Copyright (c) 2022 Coinsence
* @license https://www.humhub.com/licences
*
* @author Daly Ghaith <[email protected]>
*/
use humhub\modules\xcoin\models\Account;
use humhub\modules\xcoin\models\Transaction;
use yii\base\Model;
return [
'id' => 'algorand',
'class' => 'humhub\modules\algorand\Module',
'namespace' => 'humhub\modules\algorand',
'events' => [
[
'class' => Account::class,
'event' => Model::EVENT_AFTER_VALIDATE,
'callback' => ['humhub\modules\algorand\calls\Wallet', 'createWallet']
],
[
'class' => Transaction::class,
'event' => 'transactionTypeIssue',
'callback' => ['humhub\modules\algorand\calls\Coin', 'mintCoin']
],
[
'class' => Transaction::class,
'event' => 'transactionTypeTransfer',
'callback' => ['humhub\modules\algorand\calls\Coin', 'transferCoin']
],
],
];