Skip to content

Commit 611636b

Browse files
authored
Merge pull request #190 from layerx-labs/dev
BEPRO v2.21
2 parents 57d1532 + f2e7901 commit 611636b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+183
-178
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"dependencies": {
2828
"@elastic/elasticsearch": "^8.2.1",
2929
"@sendgrid/mail": "^7.7.0",
30-
"@taikai/dappkit": "^2.1.11",
30+
"@taikai/dappkit": "^2.3.3",
3131
"@taikai/scribal": "^1.0.3",
3232
"axios": "^0.27.2",
3333
"bignumber.js": "9.1.0",

src/actions/delete-pending-bounties.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export async function action(query?: EventsQuery): Promise<EventsProcessed> {
4141

4242
for (const {networkAddress, id: network_id, name: networkName} of networks) {
4343
const _network = new Network_v2(web3Connection, networkAddress);
44-
await _network.loadContract();
44+
await _network.start();
4545
const pendingBounties = await db.issues.findAll({
4646
where: {
4747
state: "pending",

src/actions/get-bounty-created-event.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ async function validateToken(connection: Web3Connection, address, isTransactiona
4242
if (!token?.id) {
4343
const erc20 = new ERC20(connection, address);
4444

45-
await erc20.loadContract();
45+
await erc20.start();
4646

4747
const icon = await getCoinIconByChainAndContractAddress(address, +chainId) || undefined
4848

@@ -118,7 +118,7 @@ export async function action(block: DecodedLog<BountyCreatedEvent['returnValues'
118118
if (isIpfsEnvs && !!chain.registryAddress) {
119119
try {
120120
logger.debug(`${name} Creating card to bounty ${dbBounty.id}`);
121-
const workerAmount = await getDeveloperAmount(dbBounty, chain.chainRpc);
121+
const workerAmount = await getDeveloperAmount(dbBounty, chain.privateChainRpc!);
122122
const card = await generateCard({
123123
issue: {
124124
...dbBounty.toJSON(),

src/actions/get-bounty-moved-to-open.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export async function action(query?: EventsQuery): Promise<EventsProcessed> {
5353

5454
for (const {networkAddress, id: network_id, name: networkName} of networks) {
5555
const _network = new Network_v2(web3Connection, networkAddress);
56-
await _network.loadContract();
56+
await _network.start();
5757
const draftTime = await _network.draftTime();
5858
const bounties =
5959
await db.issues.findAll({

src/actions/get-bounty-reward-withdraw.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export async function action(query?: EventsQuery): Promise<EventsProcessed> {
8080
for (const {name, networkAddress, issues} of networks) {
8181
const network = new Network_v2(web3Connection, networkAddress);
8282

83-
await network.loadContract();
83+
await network.start();
8484

8585
for (const issue of issues) {
8686
const {id, contractId, benefactors} = issue;

src/actions/get-change-allowed-tokens-events.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export async function action(block: DecodedLog<ChangeAllowedTokensEvent['returnV
4444
.map(async (tokenAddress) => {
4545
try {
4646
const erc20 = new ERC20(connection, tokenAddress)
47-
await erc20.loadContract();
47+
await erc20.start();
4848

4949
const whereCondition: WhereOptions = {
5050
address: Sequelize.where(

src/actions/get-network-registered-events.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ export async function action(block: DecodedLog<NetworkCreatedEvent['returnValues
3232

3333
const _network = new Network_v2(connection, createdNetworkAddress);
3434
await _network.start();
35-
await _network.loadContract();
3635

3736
if (_network.networkToken?.contractAddress) {
3837
const address = _network.networkToken.contractAddress!;

src/actions/get-oracles-changed-events.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ export async function action(block: DecodedLog<OraclesChangedEvent['returnValues
4545
}
4646

4747
const service = new Network_v2(connection, network.networkAddress);
48-
await service.loadContract();
49-
48+
await service.start();
5049

5150
if (!councilAmount)
5251
councilAmount = await service.councilAmount();

src/actions/get-oracles-transfer-events.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export async function action(block: DecodedLog<OraclesTransferEvent['returnValue
3030
}
3131

3232
const service = new Network_v2(connection, address);
33-
await service.loadContract();
33+
await service.start();
3434

3535
const councilAmount = await service.councilAmount();
3636

src/actions/update-bounties-to-draft.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export async function action(query?: EventsQuery): Promise<EventsProcessed> {
4747

4848
for (const {networkAddress, id: network_id, name: networkName} of networks) {
4949
const _network = new Network_v2(web3Connection, networkAddress);
50-
await _network.loadContract();
50+
await _network.start();
5151

5252
const bounties = await db.issues.findAll({
5353
where: {

0 commit comments

Comments
 (0)