Skip to content

Commit

Permalink
Merge branch 'main' into v1
Browse files Browse the repository at this point in the history
  • Loading branch information
chibie committed Jan 22, 2025
2 parents 78379f7 + 705a255 commit cae529d
Show file tree
Hide file tree
Showing 28 changed files with 7,845 additions and 9,729 deletions.
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/Bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Bug report
about: Report a bug to help us improve
title: "[BUG] "
labels: bug
assignees: ""
---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '...'
3. Scroll down to '...'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Environment:**
- OS: [e.g., Windows 10, macOS Ventura]
- Browser: [e.g., Chrome 112]
- Version: [e.g., 22.5]

**Additional context**
Add any other context about the problem here.
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/Feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Feature request
about: New feature for this project
title: ''
labels: ''
assignees: ''
---


**User Story**
> Add the details of this issue from the user's POV
**Acceptance Criteria**
> 1. **GIVEN** Given that something happens
> **WHEN** Under certain conditions
> **THEN** Then we expect a particular result
**Tech Details**
>* Add the technical details of the feature
**Notes/Assumptions**
>* Notes or assumption that has to remain constant.
**Open Questions**
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: "Paycrest Dev Community"
url: "https://t.me/+Stx-wLOdj49iNDM0"
about: "Please ask and answer questions here."
- name: "Paycrest Security Bug Bounty"
url: "[email protected]"
about: "Please report security vulnerabilities here."
35 changes: 35 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
By submitting a PR to this repository, you agree to the terms within the [Paycrest Code of Conduct](https://paycrest.notion.site/Contributor-Code-of-Conduct-1602482d45a2806bab75fd314b381f4c). Please see the [contributing guidelines](https://paycrest.notion.site/Contribution-Guide-1602482d45a2809a8930e6ad565c906a?pvs=4) for how to create and submit a high-quality PR for this repo.

### Description

> Describe the purpose of this PR along with any background information and the impacts of the proposed change. For the benefit of the community, please do not assume prior context.
>
> Provide details that support your chosen implementation, including: breaking changes, alternatives considered, changes to the API, contracts etc.

### References

> Include any links supporting this change such as a:
>
> - GitHub Issue/PR number addressed or fixed
> - StackOverflow post
> - Support forum thread
> - Related pull requests/issues from other repos
>
> If there are no references, simply delete this section.
### Testing

> Describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this project has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.
>
> Please include any manual steps for testing end-to-end or functionality not covered by unit/integration tests.
>
> Also include details of the environment this PR was developed in (language/platform/browser version).
- [ ] This change adds test coverage for new/changed/fixed functionality

### Checklist

- [ ] I have added documentation for new/changed functionality in this PR
- [ ] All active GitHub checks for tests, formatting, and security are passing
- [ ] The correct base branch is being used, if not `master`
270 changes: 270 additions & 0 deletions .openzeppelin/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -1147,6 +1147,276 @@
},
"namespaces": {}
}
},
"8689ffc4c401435f48792097adca219ffd47d52aa60869b4623055b9563f9927": {
"address": "0xd2d97002Ec87ba57FCf3f6b510f20d5A80A6C33a",
"layout": {
"solcVersion": "0.8.18",
"storage": [
{
"label": "_initialized",
"offset": 0,
"slot": "0",
"type": "t_uint8",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:63",
"retypedFrom": "bool"
},
{
"label": "_initializing",
"offset": 1,
"slot": "0",
"type": "t_bool",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68"
},
{
"label": "__gap",
"offset": 0,
"slot": "1",
"type": "t_array(t_uint256)50_storage",
"contract": "ContextUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:40"
},
{
"label": "_owner",
"offset": 0,
"slot": "51",
"type": "t_address",
"contract": "OwnableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22"
},
{
"label": "__gap",
"offset": 0,
"slot": "52",
"type": "t_array(t_uint256)49_storage",
"contract": "OwnableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94"
},
{
"label": "_pendingOwner",
"offset": 0,
"slot": "101",
"type": "t_address",
"contract": "Ownable2StepUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol:21"
},
{
"label": "__gap",
"offset": 0,
"slot": "102",
"type": "t_array(t_uint256)49_storage",
"contract": "Ownable2StepUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol:70"
},
{
"label": "MAX_BPS",
"offset": 0,
"slot": "151",
"type": "t_uint256",
"contract": "GatewaySettingManager",
"src": "contracts/GatewaySettingManager.sol:12"
},
{
"label": "protocolFeePercent",
"offset": 0,
"slot": "152",
"type": "t_uint64",
"contract": "GatewaySettingManager",
"src": "contracts/GatewaySettingManager.sol:13"
},
{
"label": "treasuryAddress",
"offset": 8,
"slot": "152",
"type": "t_address",
"contract": "GatewaySettingManager",
"src": "contracts/GatewaySettingManager.sol:14"
},
{
"label": "_aggregatorAddress",
"offset": 0,
"slot": "153",
"type": "t_address",
"contract": "GatewaySettingManager",
"src": "contracts/GatewaySettingManager.sol:15"
},
{
"label": "_isTokenSupported",
"offset": 0,
"slot": "154",
"type": "t_mapping(t_address,t_uint256)",
"contract": "GatewaySettingManager",
"src": "contracts/GatewaySettingManager.sol:16"
},
{
"label": "__gap",
"offset": 0,
"slot": "155",
"type": "t_array(t_uint256)50_storage",
"contract": "GatewaySettingManager",
"src": "contracts/GatewaySettingManager.sol:19"
},
{
"label": "_paused",
"offset": 0,
"slot": "205",
"type": "t_bool",
"contract": "PausableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol:29"
},
{
"label": "__gap",
"offset": 0,
"slot": "206",
"type": "t_array(t_uint256)49_storage",
"contract": "PausableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol:116"
},
{
"label": "order",
"offset": 0,
"slot": "255",
"type": "t_mapping(t_bytes32,t_struct(Order)2466_storage)",
"contract": "Gateway",
"src": "contracts/Gateway.sol:19"
},
{
"label": "_nonce",
"offset": 0,
"slot": "256",
"type": "t_mapping(t_address,t_uint256)",
"contract": "Gateway",
"src": "contracts/Gateway.sol:20"
},
{
"label": "__gap",
"offset": 0,
"slot": "257",
"type": "t_array(t_uint256)50_storage",
"contract": "Gateway",
"src": "contracts/Gateway.sol:21"
}
],
"types": {
"t_address": {
"label": "address",
"numberOfBytes": "20"
},
"t_array(t_uint256)49_storage": {
"label": "uint256[49]",
"numberOfBytes": "1568"
},
"t_array(t_uint256)50_storage": {
"label": "uint256[50]",
"numberOfBytes": "1600"
},
"t_bool": {
"label": "bool",
"numberOfBytes": "1"
},
"t_bytes32": {
"label": "bytes32",
"numberOfBytes": "32"
},
"t_mapping(t_address,t_uint256)": {
"label": "mapping(address => uint256)",
"numberOfBytes": "32"
},
"t_mapping(t_bytes32,t_struct(Order)2466_storage)": {
"label": "mapping(bytes32 => struct IGateway.Order)",
"numberOfBytes": "32"
},
"t_struct(Order)2466_storage": {
"label": "struct IGateway.Order",
"members": [
{
"label": "sender",
"type": "t_address",
"offset": 0,
"slot": "0"
},
{
"label": "token",
"type": "t_address",
"offset": 0,
"slot": "1"
},
{
"label": "senderFeeRecipient",
"type": "t_address",
"offset": 0,
"slot": "2"
},
{
"label": "senderFee",
"type": "t_uint256",
"offset": 0,
"slot": "3"
},
{
"label": "protocolFee",
"type": "t_uint256",
"offset": 0,
"slot": "4"
},
{
"label": "isFulfilled",
"type": "t_bool",
"offset": 0,
"slot": "5"
},
{
"label": "isRefunded",
"type": "t_bool",
"offset": 1,
"slot": "5"
},
{
"label": "refundAddress",
"type": "t_address",
"offset": 2,
"slot": "5"
},
{
"label": "currentBPS",
"type": "t_uint96",
"offset": 0,
"slot": "6"
},
{
"label": "amount",
"type": "t_uint256",
"offset": 0,
"slot": "7"
}
],
"numberOfBytes": "256"
},
"t_uint256": {
"label": "uint256",
"numberOfBytes": "32"
},
"t_uint64": {
"label": "uint64",
"numberOfBytes": "8"
},
"t_uint8": {
"label": "uint8",
"numberOfBytes": "1"
},
"t_uint96": {
"label": "uint96",
"numberOfBytes": "12"
}
},
"namespaces": {}
},
"allAddresses": [
"0xd2d97002Ec87ba57FCf3f6b510f20d5A80A6C33a",
"0xd28da2E11FCd2A9F44D5a4952430CE8b4f3Ee05f"
]
}
}
}
Loading

0 comments on commit cae529d

Please sign in to comment.