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

[ECO-2814] Update environment variables for new testnet addresses; update starting version #599

Merged
merged 6 commits into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 2 additions & 2 deletions doc/doc-site/docs/about/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ If you are a developer, see below for emojicoin.fun Move package addresses!
| Chain | Explorer link | Full address |
| ------- | ----------------- | -------------------------------------------------------------------- |
| Mainnet | [`0xface...cafe`] | `0xface729284ae5729100b3a9ad7f7cc025ea09739cd6e7252aff0beb53619cafe` |
| Testnet | [`0x1111...1111`] | `0x11113ddc70ea051ffd8a7cde7b96818326aabf56fdfd47807f7700e2b46e1111` |
| Testnet | [`0x1abf...73b4`] | `0x1abfa4c5bb5f381b00719fc19e8e655cb2531904bf8f59309efd18eb081373b4` |

<!-- markdownlint-enable MD013 -->

[`0x1111...1111`]: https://explorer.aptoslabs.com/account/0x11113ddc70ea051ffd8a7cde7b96818326aabf56fdfd47807f7700e2b46e1111?network=testnet
[`0x1abf...73b4`]: https://explorer.aptoslabs.com/account/0x1abfa4c5bb5f381b00719fc19e8e655cb2531904bf8f59309efd18eb081373b4?network=testnet
[`0xface...cafe`]: https://explorer.aptoslabs.com/account/0xface729284ae5729100b3a9ad7f7cc025ea09739cd6e7252aff0beb53619cafe?network=mainnet
6 changes: 3 additions & 3 deletions src/docker/example.testnet.env
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
# leading `0x`.
# See: https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-40.md
# ---------------------------------------------------------------------------- #
EMOJICOIN_MODULE_ADDRESS="0x11113ddc70ea051ffd8a7cde7b96818326aabf56fdfd47807f7700e2b46e1111"
EMOJICOIN_ARENA_MODULE_ADDRESS="0x2222e4c4788e34e21bacad364855f5e648c19f4643f20f22f507334d041c2222"
EMOJICOIN_MODULE_ADDRESS="0x1abfa4c5bb5f381b00719fc19e8e655cb2531904bf8f59309efd18eb081373b4"
EMOJICOIN_ARENA_MODULE_ADDRESS="0x2e51979739db25dc987bd24e1a968e45cca0e0daea7cae9121f68af93e8884c9"

# The transaction version to start indexing at. Most often this should just be
# the transaction version where the `emojicoin_dot_fun` module is published.
MINIMUM_STARTING_VERSION="5675600000"
MINIMUM_STARTING_VERSION="6620280000"

# ---------------------------------------------------------------------------- #
# GRPC endpoint & authentication token
Expand Down
4 changes: 2 additions & 2 deletions src/typescript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ The contract address of the main `emojicoin-dot-fun` module.

<!-- markdownlint-disable MD013 -->

- **Example**: `"0x11113ddc70ea051ffd8a7cde7b96818326aabf56fdfd47807f7700e2b46e1111"`
- **Example**: `"0x1abfa4c5bb5f381b00719fc19e8e655cb2531904bf8f59309efd18eb081373b4"`

#### `NEXT_PUBLIC_REWARDS_MODULE_ADDRESS`

The contract address of the rewards module with an overloaded swap function.

- **Example**: `"0x22227920701e36651a6649be2067cd7eebf3fabb94717ff3b256e3ada58b2222"`
- **Example**: `"0x2e51979739db25dc987bd24e1a968e45cca0e0daea7cae9121f68af93e8884c9"`

#### `NEXT_PUBLIC_INTEGRATOR_ADDRESS`

Expand Down
6 changes: 3 additions & 3 deletions src/typescript/example.testnet.env
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
# Aptos network & contract addresses
# ---------------------------------------------------------------------------- #
NEXT_PUBLIC_APTOS_NETWORK="testnet"
NEXT_PUBLIC_MODULE_ADDRESS="0x11113ddc70ea051ffd8a7cde7b96818326aabf56fdfd47807f7700e2b46e1111"
NEXT_PUBLIC_REWARDS_MODULE_ADDRESS="0x22227920701e36651a6649be2067cd7eebf3fabb94717ff3b256e3ada58b2222"
NEXT_PUBLIC_MODULE_ADDRESS="0x1abfa4c5bb5f381b00719fc19e8e655cb2531904bf8f59309efd18eb081373b4"
NEXT_PUBLIC_REWARDS_MODULE_ADDRESS="0x2e51979739db25dc987bd24e1a968e45cca0e0daea7cae9121f68af93e8884c9"
NEXT_PUBLIC_INTEGRATOR_ADDRESS="0x33332c9ea4c220e0572b7f83f397164f8171e1c9f681136bb8ab78efa6c43333"
NEXT_PUBLIC_ARENA_MODULE_ADDRESS="0x2222e4c4788e34e21bacad364855f5e648c19f4643f20f22f507334d041c2222"
NEXT_PUBLIC_ARENA_MODULE_ADDRESS="0x2e51979739db25dc987bd24e1a968e45cca0e0daea7cae9121f68af93e8884c9"

# ---------------------------------------------------------------------------- #
# Emojicoin indexer, broker, and allowlister
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ const TestData = {
preBondingCurve: {
json: data["pre_bonding_curve"],
text: `[{"transaction_version":6084169932,"sender":"0xbad225596d685895aa64d92f4f0e14d2f9d8075d3b
8adf1e90ae6037f1fcbabe","entry_function":"0x22227920701e36651a6649be2067cd7eebf3fabb94717ff3b256
e3ada58b2222::emojicoin_dot_fun_rewards::swap_with_rewards","transaction_timestamp":"2024-10-04T
8adf1e90ae6037f1fcbabe","entry_function":"0x2e51979739db25dc987bd24e1a968e45cca0e0daea7cae9121f6
8af93e8884c9::emojicoin_dot_fun_rewards::swap_with_rewards","transaction_timestamp":"2024-10-04T
09:29:38.69085","inserted_at":"2024-10-04T09:29:14.65541","market_id":65,"symbol_bytes":"\\\\xf0
9f9889f09f9983","symbol_emojis":["😉","🙃"],"bump_time":"2024-10-04T09:29:38.69085","market_nonc
e":2,"trigger":"swap_buy","market_address":"0xa8f7c8ced47426d7c3762d0b5a9840487cde820b7a5a4a4751
Expand All @@ -47,8 +47,8 @@ const TestData = {
postBondingCurve: {
json: data["post_bonding_curve"],
text: `[{"transaction_version":6080639845,"sender":"0xc9b6bbf05e807d8935676c95ef00d694365ba5ff15
b31cea6fc057cf6f9b6aa7","entry_function":"0x11113ddc70ea051ffd8a7cde7b96818326aabf56fdfd47807f77
00e2b46e1111::emojicoin_dot_fun::provide_liquidity","transaction_timestamp":"2024-10-03T15:55:32
b31cea6fc057cf6f9b6aa7","entry_function":"0x1abfa4c5bb5f381b00719fc19e8e655cb2531904bf8f59309efd
18eb081373b4::emojicoin_dot_fun::provide_liquidity","transaction_timestamp":"2024-10-03T15:55:32
.080509","inserted_at":"2024-10-03T01:09:52.037678","market_id":1,"symbol_bytes":"\\\\xf09f92bbe
29aa1","symbol_emojis":["💻","⚡"],"bump_time":"2024-10-03T15:55:32.080509","market_nonce":47668
,"trigger":"provide_liquidity","market_address":"0x43dcf02dcc0f3759d00486052585bf1694acf85c7e3e7
Expand Down
4 changes: 2 additions & 2 deletions src/typescript/sdk/tests/unit/event-parser/goldens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ const BondingCurveStates: {
version: 6084169932n,
sender: "0xbad225596d685895aa64d92f4f0e14d2f9d8075d3b8adf1e90ae6037f1fcbabe",
entryFunction:
`0x22227920701e36651a6649be2067cd7eebf3fabb94717ff3b256e3ada58b2222::emojicoin_dot_fun_rew
`0x2e51979739db25dc987bd24e1a968e45cca0e0daea7cae9121f68af93e8884c9::emojicoin_dot_fun_rew
ards::swap_with_rewards`.replaceAll(/\s/g, ""),
time: 1728034178690850n,
timestamp: new Date("2024-10-04T09:29:38.69085Z"),
Expand Down Expand Up @@ -266,7 +266,7 @@ const BondingCurveStates: {
version: 6080639845n,
sender: "0xc9b6bbf05e807d8935676c95ef00d694365ba5ff15b31cea6fc057cf6f9b6aa7",
entryFunction:
`0x11113ddc70ea051ffd8a7cde7b96818326aabf56fdfd47807f7700e2b46e1111::emojicoin_dot_fun::
`0x1abfa4c5bb5f381b00719fc19e8e655cb2531904bf8f59309efd18eb081373b4::emojicoin_dot_fun::
provide_liquidity`.replaceAll(/\s/g, ""),
time: 1727970932080509n,
timestamp: new Date("2024-10-03T15:55:32.080509Z"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"daily_tvl_per_lp_coin_growth": 1.001499814363967876933091555675361179387333896289378370590041427871042284306953206420708127389545305,
"daily_volume": 0,
"daily_base_volume": 0,
"entry_function": "0x11113ddc70ea051ffd8a7cde7b96818326aabf56fdfd47807f7700e2b46e1111::emojicoin_dot_fun::provide_liquidity",
"entry_function": "0x1abfa4c5bb5f381b00719fc19e8e655cb2531904bf8f59309efd18eb081373b4::emojicoin_dot_fun::provide_liquidity",
"in_bonding_curve": false,
"inserted_at": "2024-10-03T01:09:52.037678",
"instantaneous_stats_fully_diluted_value": 1765580515921,
Expand Down Expand Up @@ -63,7 +63,7 @@
"daily_tvl_per_lp_coin_growth": 0,
"daily_volume": 99000000,
"daily_base_volume": 12097558542607,
"entry_function": "0x22227920701e36651a6649be2067cd7eebf3fabb94717ff3b256e3ada58b2222::emojicoin_dot_fun_rewards::swap_with_rewards",
"entry_function": "0x2e51979739db25dc987bd24e1a968e45cca0e0daea7cae9121f68af93e8884c9::emojicoin_dot_fun_rewards::swap_with_rewards",
"in_bonding_curve": true,
"inserted_at": "2024-10-04T09:29:14.65541",
"instantaneous_stats_fully_diluted_value": 36916755635,
Expand Down
16 changes: 8 additions & 8 deletions src/typescript/sdk/tests/unit/event-parser/json/transaction.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
"creation_number": "3"
},
"sequence_number": "49177",
"type": "0x11113ddc70ea051ffd8a7cde7b96818326aabf56fdfd47807f7700e2b46e1111::emojicoin_dot_fun::Swap"
"type": "0x1abfa4c5bb5f381b00719fc19e8e655cb2531904bf8f59309efd18eb081373b4::emojicoin_dot_fun::Swap"
},
{
"data": {
Expand Down Expand Up @@ -221,7 +221,7 @@
"creation_number": "4"
},
"sequence_number": "49178",
"type": "0x11113ddc70ea051ffd8a7cde7b96818326aabf56fdfd47807f7700e2b46e1111::emojicoin_dot_fun::State"
"type": "0x1abfa4c5bb5f381b00719fc19e8e655cb2531904bf8f59309efd18eb081373b4::emojicoin_dot_fun::State"
},
{
"data": {
Expand Down Expand Up @@ -257,7 +257,7 @@
"creation_number": "5"
},
"sequence_number": "49179",
"type": "0x11113ddc70ea051ffd8a7cde7b96818326aabf56fdfd47807f7700e2b46e1111::emojicoin_dot_fun::PeriodicState"
"type": "0x1abfa4c5bb5f381b00719fc19e8e655cb2531904bf8f59309efd18eb081373b4::emojicoin_dot_fun::PeriodicState"
},
{
"data": {
Expand All @@ -277,7 +277,7 @@
"creation_number": "6"
},
"sequence_number": "49180",
"type": "0x11113ddc70ea051ffd8a7cde7b96818326aabf56fdfd47807f7700e2b46e1111::emojicoin_dot_fun::Liquidity"
"type": "0x1abfa4c5bb5f381b00719fc19e8e655cb2531904bf8f59309efd18eb081373b4::emojicoin_dot_fun::Liquidity"
},
{
"data": {
Expand All @@ -296,7 +296,7 @@
"creation_number": "7"
},
"sequence_number": "49181",
"type": "0x11113ddc70ea051ffd8a7cde7b96818326aabf56fdfd47807f7700e2b46e1111::emojicoin_dot_fun::MarketRegistration"
"type": "0x1abfa4c5bb5f381b00719fc19e8e655cb2531904bf8f59309efd18eb081373b4::emojicoin_dot_fun::MarketRegistration"
},
{
"data": {
Expand Down Expand Up @@ -335,7 +335,7 @@
"creation_number": "8"
},
"sequence_number": "49182",
"type": "0x11113ddc70ea051ffd8a7cde7b96818326aabf56fdfd47807f7700e2b46e1111::emojicoin_dot_fun::GlobalState"
"type": "0x1abfa4c5bb5f381b00719fc19e8e655cb2531904bf8f59309efd18eb081373b4::emojicoin_dot_fun::GlobalState"
},
{
"data": {
Expand All @@ -357,7 +357,7 @@
"creation_number": "9"
},
"sequence_number": "49183",
"type": "0x11113ddc70ea051ffd8a7cde7b96818326aabf56fdfd47807f7700e2b46e1111::emojicoin_dot_fun::Chat"
"type": "0x1abfa4c5bb5f381b00719fc19e8e655cb2531904bf8f59309efd18eb081373b4::emojicoin_dot_fun::Chat"
}
],
"expiration_timestamp_secs": "1727851404",
Expand All @@ -372,7 +372,7 @@
false,
"1"
],
"function": "0x22227920701e36651a6649be2067cd7eebf3fabb94717ff3b256e3ada58b2222::emojicoin_dot_fun_rewards::swap_with_rewards",
"function": "0x2e51979739db25dc987bd24e1a968e45cca0e0daea7cae9121f68af93e8884c9::emojicoin_dot_fun_rewards::swap_with_rewards",
"type": "entry_function_payload",
"type_arguments": [
"0x3482d7ec914c86e9e898d40bf88a5d31afb3fb43ce73b3d58f0b888c70f7356f::coin_factory::Emojicoin",
Expand Down
Loading