Repository: ripple/explorer (ts)

Issue:
Link to the created AMM when viewing AMMCreate
The AMMCreate transaction should show a link to the newly created AMM account in simple view.

The link should be the first item listed.

The account can be found in a `CreatedNode` of type `AMM`

Pull request description:
fix: link to AMM account page from transactions
## High Level Overview of Change

At some point the property `AMMAccount` on `AMM` ledger entries was changed to `Account`.

I also opened a PR on the documentation site.
https://github.com/ripple/opensource.ripple.com/pull/63

Fixes #734

### Type of Change

- [x] Bug fix (non-breaking change which fixes an issue)
- [x] Tests (You added tests for code that already exists, or your new feature included in this PR)

## Before
![AMM-Account-Link-Before](https://github.com/ripple/explorer/assets/464895/3278bf55-1e01-4c2d-9bde-c57d5d8ceb2f)

## After
![AMM-Account-Link-After](https://github.com/ripple/explorer/assets/464895/64b3951d-dd67-4f3d-8b59-9bdc2ce9f96c)


Patch:
diff --git a/src/containers/shared/metaParser.tsx b/src/containers/shared/metaParser.tsx
index 123af621..aff9b08f 100644
--- a/src/containers/shared/metaParser.tsx
+++ b/src/containers/shared/metaParser.tsx
@@ -19,8 +19,7 @@ Gets the AMM account ID
 export function getAMMAccountID(meta: any) {
   const account = findNodes(meta, LedgerEntryTypes.AMM)[0]
 
-  if (account)
-    return account.FinalFields?.AMMAccount || account.NewFields?.AMMAccount
+  if (account) return account.FinalFields?.Account || account.NewFields?.Account
 
   return undefined
 }


Test patch:
diff --git a/src/containers/shared/components/Transaction/AMMBid/test/mock_data/amm_bid.json b/src/containers/shared/components/Transaction/AMMBid/test/mock_data/amm_bid.json
index 03102d7f..b00c13b8 100644
--- a/src/containers/shared/components/Transaction/AMMBid/test/mock_data/amm_bid.json
+++ b/src/containers/shared/components/Transaction/AMMBid/test/mock_data/amm_bid.json
@@ -58,7 +58,7 @@
       {
         "ModifiedNode": {
           "FinalFields": {
-            "AMMAccount": "rMEdVzU8mtEArzjrN9avm3kA675GX7ez8W",
+            "Account": "rMEdVzU8mtEArzjrN9avm3kA675GX7ez8W",
             "Asset": {
               "currency": "XRP"
             },
diff --git a/src/containers/shared/components/Transaction/AMMCreate/test/mock_data/amm_create.json b/src/containers/shared/components/Transaction/AMMCreate/test/mock_data/amm_create.json
index d1166f7b..9b9b5be6 100644
--- a/src/containers/shared/components/Transaction/AMMCreate/test/mock_data/amm_create.json
+++ b/src/containers/shared/components/Transaction/AMMCreate/test/mock_data/amm_create.json
@@ -160,7 +160,7 @@
           "LedgerEntryType": "AMM",
           "LedgerIndex": "C7FD06649235AF4CABD8FA6D8BB0CAF6C6EA5038A74D0DDD5025290683636D02",
           "NewFields": {
-            "AMMAccount": "rMEdVzU8mtEArzjrN9avm3kA675GX7ez8W",
+            "Account": "rMEdVzU8mtEArzjrN9avm3kA675GX7ez8W",
             "Asset2": {
               "currency": "USD",
               "issuer": "rhpHaFggC92ELty3n3yDEtuFgWxXWkUFET"
diff --git a/src/containers/shared/components/Transaction/AMMDeposit/test/mock_data/deposit_both.json b/src/containers/shared/components/Transaction/AMMDeposit/test/mock_data/deposit_both.json
index 9b3bb53d..846065b4 100644
--- a/src/containers/shared/components/Transaction/AMMDeposit/test/mock_data/deposit_both.json
+++ b/src/containers/shared/components/Transaction/AMMDeposit/test/mock_data/deposit_both.json
@@ -146,7 +146,7 @@
       {
         "ModifiedNode": {
           "FinalFields": {
-            "AMMAccount": "rMEdVzU8mtEArzjrN9avm3kA675GX7ez8W",
+            "Account": "rMEdVzU8mtEArzjrN9avm3kA675GX7ez8W",
             "Asset": {
               "currency": "XRP"
             },
diff --git a/src/containers/shared/components/Transaction/AMMDeposit/test/mock_data/deposit_eprice.json b/src/containers/shared/components/Transaction/AMMDeposit/test/mock_data/deposit_eprice.json
index 69f928c3..6ff649eb 100644
--- a/src/containers/shared/components/Transaction/AMMDeposit/test/mock_data/deposit_eprice.json
+++ b/src/containers/shared/components/Transaction/AMMDeposit/test/mock_data/deposit_eprice.json
@@ -87,7 +87,7 @@
       {
         "ModifiedNode": {
           "FinalFields": {
-            "AMMAccount": "rHrzrzVHSyunKzW3JLgSaLcsxfwVLPVV97",
+            "Account": "rHrzrzVHSyunKzW3JLgSaLcsxfwVLPVV97",
             "Asset": {
               "currency": "XRP"
             },
diff --git a/src/containers/shared/components/Transaction/AMMDeposit/test/mock_data/deposit_nonxrp.json b/src/containers/shared/components/Transaction/AMMDeposit/test/mock_data/deposit_nonxrp.json
index b05d766e..44d61cf8 100644
--- a/src/containers/shared/components/Transaction/AMMDeposit/test/mock_data/deposit_nonxrp.json
+++ b/src/containers/shared/components/Transaction/AMMDeposit/test/mock_data/deposit_nonxrp.json
@@ -69,7 +69,7 @@
       {
         "ModifiedNode": {
           "FinalFields": {
-            "AMMAccount": "rEJ1X5BoSmHqa5h6TSVvYrHAzFmyxGqNic",
+            "Account": "rEJ1X5BoSmHqa5h6TSVvYrHAzFmyxGqNic",
             "Asset": {
               "currency": "EUR",
               "issuer": "rEaiyQKvxYWmh7q9mvSm11kZmKx92HZdmr"
diff --git a/src/containers/shared/components/Transaction/AMMDeposit/test/mock_data/deposit_usd.json b/src/containers/shared/components/Transaction/AMMDeposit/test/mock_data/deposit_usd.json
index d6c40474..aaa45c61 100644
--- a/src/containers/shared/components/Transaction/AMMDeposit/test/mock_data/deposit_usd.json
+++ b/src/containers/shared/components/Transaction/AMMDeposit/test/mock_data/deposit_usd.json
@@ -150,7 +150,7 @@
       {
         "ModifiedNode": {
           "FinalFields": {
-            "AMMAccount": "rMEdVzU8mtEArzjrN9avm3kA675GX7ez8W",
+            "Account": "rMEdVzU8mtEArzjrN9avm3kA675GX7ez8W",
             "Asset": {
               "currency": "XRP"
             },
diff --git a/src/containers/shared/components/Transaction/AMMDeposit/test/mock_data/deposit_xrp.json b/src/containers/shared/components/Transaction/AMMDeposit/test/mock_data/deposit_xrp.json
index 7159933a..0c53bbd5 100644
--- a/src/containers/shared/components/Transaction/AMMDeposit/test/mock_data/deposit_xrp.json
+++ b/src/containers/shared/components/Transaction/AMMDeposit/test/mock_data/deposit_xrp.json
@@ -76,7 +76,7 @@
       {
         "ModifiedNode": {
           "FinalFields": {
-            "AMMAccount": "rMEdVzU8mtEArzjrN9avm3kA675GX7ez8W",
+            "Account": "rMEdVzU8mtEArzjrN9avm3kA675GX7ez8W",
             "Asset": {
               "currency": "XRP"
             },
diff --git a/src/containers/shared/components/Transaction/AMMVote/test/mock_data/amm_vote.json b/src/containers/shared/components/Transaction/AMMVote/test/mock_data/amm_vote.json
index 274623e4..c5217879 100644
--- a/src/containers/shared/components/Transaction/AMMVote/test/mock_data/amm_vote.json
+++ b/src/containers/shared/components/Transaction/AMMVote/test/mock_data/amm_vote.json
@@ -23,7 +23,7 @@
       {
         "ModifiedNode": {
           "FinalFields": {
-            "AMMAccount": "rMEdVzU8mtEArzjrN9avm3kA675GX7ez8W",
+            "Account": "rMEdVzU8mtEArzjrN9avm3kA675GX7ez8W",
             "Asset": {
               "currency": "XRP"
             },
diff --git a/src/containers/shared/components/Transaction/AMMWithdraw/test/mock_data/withdraw.json b/src/containers/shared/components/Transaction/AMMWithdraw/test/mock_data/withdraw.json
index 4efbcb39..d0547c97 100644
--- a/src/containers/shared/components/Transaction/AMMWithdraw/test/mock_data/withdraw.json
+++ b/src/containers/shared/components/Transaction/AMMWithdraw/test/mock_data/withdraw.json
@@ -169,7 +169,7 @@
       {
         "ModifiedNode": {
           "FinalFields": {
-            "AMMAccount": "rMEdVzU8mtEArzjrN9avm3kA675GX7ez8W",
+            "Account": "rMEdVzU8mtEArzjrN9avm3kA675GX7ez8W",
             "Asset": {
               "currency": "XRP"
             },
diff --git a/src/containers/shared/components/Transaction/AMMWithdraw/test/mock_data/withdraw_eprice.json b/src/containers/shared/components/Transaction/AMMWithdraw/test/mock_data/withdraw_eprice.json
index d1cfde75..e72240b0 100644
--- a/src/containers/shared/components/Transaction/AMMWithdraw/test/mock_data/withdraw_eprice.json
+++ b/src/containers/shared/components/Transaction/AMMWithdraw/test/mock_data/withdraw_eprice.json
@@ -138,7 +138,7 @@
       {
         "ModifiedNode": {
           "FinalFields": {
-            "AMMAccount": "rHrzrzVHSyunKzW3JLgSaLcsxfwVLPVV97",
+            "Account": "rHrzrzVHSyunKzW3JLgSaLcsxfwVLPVV97",
             "Asset": {
               "currency": "XRP"
             },
diff --git a/src/containers/shared/components/Transaction/AMMWithdraw/test/mock_data/withdraw_usd.json b/src/containers/shared/components/Transaction/AMMWithdraw/test/mock_data/withdraw_usd.json
index 9033ce6b..1cf41147 100644
--- a/src/containers/shared/components/Transaction/AMMWithdraw/test/mock_data/withdraw_usd.json
+++ b/src/containers/shared/components/Transaction/AMMWithdraw/test/mock_data/withdraw_usd.json
@@ -82,7 +82,7 @@
       {
         "ModifiedNode": {
           "FinalFields": {
-            "AMMAccount": "rHrzrzVHSyunKzW3JLgSaLcsxfwVLPVV97",
+            "Account": "rHrzrzVHSyunKzW3JLgSaLcsxfwVLPVV97",
             "Asset": {
               "currency": "XRP"
             },
diff --git a/src/containers/shared/components/Transaction/AMMWithdraw/test/mock_data/withdraw_xrp.json b/src/containers/shared/components/Transaction/AMMWithdraw/test/mock_data/withdraw_xrp.json
index 10aac60b..91626224 100644
--- a/src/containers/shared/components/Transaction/AMMWithdraw/test/mock_data/withdraw_xrp.json
+++ b/src/containers/shared/components/Transaction/AMMWithdraw/test/mock_data/withdraw_xrp.json
@@ -61,7 +61,7 @@
       {
         "ModifiedNode": {
           "FinalFields": {
-            "AMMAccount": "rHrzrzVHSyunKzW3JLgSaLcsxfwVLPVV97",
+            "Account": "rHrzrzVHSyunKzW3JLgSaLcsxfwVLPVV97",
             "Asset": {
               "currency": "XRP"
             },