-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.php
47 lines (44 loc) · 1.42 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
36
37
38
39
40
41
42
43
44
45
46
<?php
/**
* @link https://coinsence.org/
* @copyright Copyright (c) 2018 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\db\ActiveRecord;
use yii\web\Application;
return [
'id' => 'ethereum',
'class' => 'humhub\modules\ethereum\Module',
'namespace' => 'humhub\modules\ethereum',
'events' => [
[
'class' => Application::class,
'event' => Application::EVENT_BEFORE_REQUEST,
'callback' => ['\humhub\modules\ethereum\Events', 'onBeforeRequest']
],
[
'class' => Account::class,
'event' => ActiveRecord::EVENT_BEFORE_VALIDATE,
'callback' => ['humhub\modules\ethereum\calls\Wallet', 'createWallet']
],
[
'class' => Account::class,
'event' => 'defaultSpaceAccountCreated',
'callback' => ['humhub\modules\ethereum\calls\Dao', 'createDao']
],
[
'class' => Transaction::class,
'event' => 'transactionTypeIssue',
'callback' => ['humhub\modules\ethereum\calls\Coin', 'mintCoin']
],
[
'class' => Transaction::class,
'event' => 'transactionTypeTransfer',
'callback' => ['humhub\modules\ethereum\calls\Coin', 'transferCoin']
],
],
];