Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/support native token deposit #255

Merged
merged 8 commits into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/markets/pr_template.md
felixduc19 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,11 @@ Each json file under the [configs](../../configs) folder correspond to their res
|`show_from` |`string` |false |The date and time when the market banner is scheduled to begin displaying. |If not provided, the banner will be shown immediately.<br /><br /> This field **MUST** follow the valid ISO 8601 format <br /> e.g. *2024-01-23T09:00+00:00* (23 Jan 2024, 9am UTC) |
|`show_until` |`string` |false |The date and time when the market banner is scheduled to stop displaying. |If not provided, the banner will continue to display indefinitely.<br /><br /> This field **MUST** follow the valid ISO 8601 format <br /> e.g. *2024-01-23T09:00+00:00* (23 Jan 2024, 9am UTC) |
|`content` |`string` |true |The content shown on the market banner. |
|`hideable` |`boolean` |false |Indicates if user can hide the banner by clicking on the close button |If set to `false`, the close button will not be rendered on the banner, and user will not be able to dismiss the banner. |
|`hideable` |`boolean` |false |Indicates if user can hide the banner by clicking on the close button |If set to `false`, the close button will not be rendered on the banner, and user will not be able to dismiss the banner. |

## Native Contract Info

| Field | Type | Required | Description | Notes |
| ---------------------------- | ------------------------ | -------- | -------------------------------------------------------------------------------------------------------------------- | ----- |
| `native_token_contracts_map` | `NativeTokenContractMap` | false | Here is a list of denoms that support deposits with native tokens, including the corresponding native token address. | |
felixduc19 marked this conversation as resolved.
Show resolved Hide resolved
| `native_depositor_contract` | `string` | false | Contract address supporting native token deposits | |
13 changes: 13 additions & 0 deletions config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,19 @@
}
}
},
"native_depositor_contract": {
"type": "string",
"description": "Contract address of the native depositor contract"
},
"native_token_contracts_map": {
"type": "object",
"description": "Map of token denoms to their respective contract addresses on the native chain",
"patternProperties": {
".*": {
"type": "string"
}
}
},
"$defs": {
"prelaunch_market": {
"type": "string",
Expand Down
7 changes: 6 additions & 1 deletion configs/mainnet.json
felixduc19 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@
"0x6a09bC65Ef703466187f59083239399e1948fEbB",
"0x8c6A1123744a78bf48B7b58Ae0ce02F364c30F8e",
"0x4Ea7639a37d229914F64e832bF5038Bc634E51Fd",
"0x88c49cd7F44C611c4DF37a605843284eEf5583Eb",
"0x88c49cd7F44C611c4DF37a605843284eEf5583Eb"
]
},
"banners": [
Expand Down Expand Up @@ -412,5 +412,10 @@
]
},
"wswth_contract": "0x0e59f6Cf81B5Fae9F7a5912062Fe53909e7221C2",
"native_token_contracts_map": {
"brdg/6418666cedaf875fb344dbd90bea7c842300939872365b933f7ee8b6c1e825e8": "0x0000000000000000000000000000000000000000",
"brdg/a02afc2c1edf77cc023eefa25fc036c184612faf9365cda9c1daa3b1675ebf8f": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0000"
},
"native_depositor_contract": "0xd91a2AcbE1f9635277120fc200F73574f1Cdad65",
"market_banners": []
}