Skip to content

Commit

Permalink
style: resolve style guide violations
Browse files Browse the repository at this point in the history
  • Loading branch information
oXtxNt9U authored and github-actions[bot] committed Oct 21, 2024
1 parent 5897ec4 commit ae73c24
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 22 deletions.
4 changes: 2 additions & 2 deletions packages/api-http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
"@hapi/hapi": "21.3.6",
"@mainsail/api-common": "workspace:*",
"@mainsail/api-database": "workspace:*",
"@mainsail/evm-contracts": "workspace:*",
"@mainsail/container": "workspace:*",
"@mainsail/contracts": "workspace:*",
"@mainsail/evm-contracts": "workspace:*",
"@mainsail/kernel": "workspace:*",
"@mainsail/utils": "workspace:*",
"dayjs": "1.11.10",
Expand All @@ -50,4 +50,4 @@
"alias": "api-http"
}
}
}
}
2 changes: 1 addition & 1 deletion packages/api-http/source/controllers/wallets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ export class WalletsController extends Controller {
}

return this.getTransactions(request, {
senderPublicKey: wallet.publicKey,
data: FunctionSigs.Vote,
senderPublicKey: wallet.publicKey,
});
}

Expand Down
8 changes: 4 additions & 4 deletions packages/api-http/source/schemas/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,17 @@ export const transactionCriteriaSchemas = {
amount: orNumericCriteria(Joi.number().integer().min(0)),
asset: orContainsCriteria(Joi.object()),
blockId: orEqualCriteria(blockId),
data: orEqualCriteria(
Joi.alternatives().try(Joi.string().valid("0x"), Joi.string().hex({ prefix: "optional" }).max(10)),
),
gasFee: orNumericCriteria(Joi.number().integer().min(0)),
gasPrice: orNumericCriteria(Joi.number().integer().min(0)),
id: orEqualCriteria(Joi.string().hex().length(64)),
nonce: orNumericCriteria(Joi.number().integer().positive()),
recipientId: orEqualCriteria(address),
senderAddress: orEqualCriteria(Joi.string().hex().length(42)),
senderId: orEqualCriteria(address),
senderPublicKey: orEqualCriteria(Joi.string().hex().length(66)),
senderAddress: orEqualCriteria(Joi.string().hex().length(42)),
data: orEqualCriteria(
Joi.alternatives().try(Joi.string().valid("0x"), Joi.string().hex({ prefix: "optional" }).max(10)),
),
sequence: orNumericCriteria(Joi.number().integer().positive()),
timestamp: orNumericCriteria(Joi.number().integer().min(0)),
};
2 changes: 1 addition & 1 deletion packages/api-http/test/fixtures/block_transactions.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@
"data": null,
"signature": "6629b10d44b4e5b1388a76e099854eb661aa6191b2a5d71cc5dc7a2571ce7289318b4d5016f05f2c9369f888b2b4c53a3bd0f6f44b092a7fbc80f54f4f5ed5e5"
}
]
]
2 changes: 1 addition & 1 deletion packages/api-http/test/fixtures/node_fees.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
"min": "5",
"sum": "10"
}
}
}
2 changes: 1 addition & 1 deletion packages/api-http/test/fixtures/receipt_transactions.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
"signature": "df8aaa778e54b48674982dd8910200bf76506b13d8d66156e40458ca20b0fb2d7ba80597a2623cdaf33b25a85fed345d55eca43cdf695c447d5bb3a083553d8a",
"signatures": null
}
]
]
10 changes: 3 additions & 7 deletions packages/api-http/test/fixtures/receipts.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
"logs": [
{
"data": "0x000000000000000000000000db1a9acdd71eb5f846059034ef6d2cb144ccd1a9000000000000000000000000db1a9acdd71eb5f846059034ef6d2cb144ccd1a9",
"topics": [
"0xce0c7a2a940807f7dc2ce7a615c2532e915e6c0ac9a08bc4ed9d515a710a53e2"
],
"topics": ["0xce0c7a2a940807f7dc2ce7a615c2532e915e6c0ac9a08bc4ed9d515a710a53e2"],
"address": "0x522B3294E6d06aA25Ad0f1B8891242E335D3B459"
}
],
Expand All @@ -27,12 +25,10 @@
"logs": [
{
"data": "0x0000000000000000000000007b962da995bf5e0a7b10351b7a4381f7826504320000000000000000000000007b962da995bf5e0a7b10351b7a4381f782650432",
"topics": [
"0xce0c7a2a940807f7dc2ce7a615c2532e915e6c0ac9a08bc4ed9d515a710a53e2"
],
"topics": ["0xce0c7a2a940807f7dc2ce7a615c2532e915e6c0ac9a08bc4ed9d515a710a53e2"],
"address": "0x522B3294E6d06aA25Ad0f1B8891242E335D3B459"
}
],
"output": "0x"
}
]
]
2 changes: 1 addition & 1 deletion packages/api-http/test/fixtures/transactions.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
"signature": "7c21083caa26fd18dfeecfa75cd57a2e80836872db21608f6ebce1d772b98c9f31b6bb897118297f4c6138d19e7dedbaa1ed6c59816acb7410dc59fbaba54e1400",
"signatures": null
}
]
]
2 changes: 1 addition & 1 deletion packages/api-http/test/fixtures/transactions_schemas.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@
"$ref": "address"
}
}
}
}
2 changes: 1 addition & 1 deletion packages/api-http/test/fixtures/transactions_types.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@
}
}
}
]
]
2 changes: 1 addition & 1 deletion packages/api-http/test/fixtures/votes.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
"signature": "ed00a08529b14053cabe409572189a398968afae3682be0ef2be8adb33f598f00e9f6cfd2ccbe892313cb70d9a204421b20e17ff3808de9981bb8d93e5cfb85501",
"signatures": null
}
]
]
2 changes: 1 addition & 1 deletion packages/evm-contracts/source/function-sigs.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const FunctionSigs = {
Vote: "0x6dd7d8ea",
ValidatorRegistration: "0x602a9eee",
Vote: "0x6dd7d8ea",
};

0 comments on commit ae73c24

Please sign in to comment.