Skip to content

Commit 67955be

Browse files
ckniffenpdp2121
andauthored
feat: xahau and update xahau testnet (#153)
## High Level Overview of Change Add Xahau support. ### Type of Change - [x] New feature (non-breaking change which adds functionality) --------- Co-authored-by: pdp2121 <[email protected]> Co-authored-by: Phu Pham <[email protected]>
1 parent 04c0f89 commit 67955be

File tree

3 files changed

+41
-9
lines changed

3 files changed

+41
-9
lines changed

src/shared/data/amendments_enabled.json

+25-1
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@
627627
]
628628
},
629629
{
630-
"networks": "hooks-test",
630+
"networks": "xahau-test",
631631
"amendments": [
632632
{
633633
"id": "F5751842D26FC057B92CAA435ABF4F1428C2BCC4180D18775ADE92CB2643BBA3",
@@ -640,6 +640,30 @@
640640
"ledger_index": 4721665,
641641
"tx_hash": "5BFB20FBF539871E985CFA50C4125109BE2F1360D245595CAD1075867DE89D01",
642642
"date": 742468340
643+
},
644+
{
645+
"id": "6E739F4F8B07BED29FC9FF440DA3C301CD14A180DF45819F658FEC2F7DE31427",
646+
"ledger_index": 6868993,
647+
"tx_hash": "2C6F4D211BB4AC3AC2ABCB4A2CB3D4A86ECC51981D4324058AC98A439B6463AC",
648+
"date": 748957422
649+
},
650+
{
651+
"id": "75A7E01C505DD5A179DFE3E000A9B6F1EDDEB55A12F95579A23E15B15DC8BE5A",
652+
"ledger_index": 6868993,
653+
"tx_hash": "7247869F50DC8A05461D4E19A0020A96E426491631A46FA96D529B667ECABAE2",
654+
"date": 748957422
655+
},
656+
{
657+
"id": "47C3002ABA31628447E8E9A8B315FAA935CE30183F9A9B86845E469CA2CDC3DF",
658+
"ledger_index": 6868993,
659+
"tx_hash": "93505F3B7C0B82DB36F6C4A02BF253F089BE237E600F1EDC595E72A217D7B1DE",
660+
"date": 748957422
661+
},
662+
{
663+
"id": "93E516234E35E08CA689FA33A6D38E103881F8DCB53023F728C307AA89D515A7",
664+
"ledger_index": 6868993,
665+
"tx_hash": "BFC5553874F444CB91DC18C38F57112ACBEE02802893AB1E829953BBAF8C5DBC",
666+
"date": 748957422
643667
}
644668
]
645669
}

src/shared/database/networks.ts

+8-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,14 @@ const networks: Network[] = [
4747
unls: ['vlamm.devnet.rippletest.net'],
4848
},
4949
{
50-
id: 'hooks-test',
51-
entry: 'hooks-testnet-v3.xrpl-labs.com',
50+
id: 'xahau-main',
51+
entry: 'xahau.network',
52+
port: 443,
53+
unls: ['vl.xahau.org'],
54+
},
55+
{
56+
id: 'xahau-test',
57+
entry: 'xahau-test.net',
5258
port: 443,
5359
unls: ['vl3.beta.bithomp.com'],
5460
},

src/shared/database/setup.ts

+8-6
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,14 @@ async function setupNetworksTable(): Promise<void> {
190190
})
191191
}
192192
const networksIds = await query('networks').pluck('id')
193+
194+
if (networksIds.includes('hooks-test')) {
195+
query('networks')
196+
.del()
197+
.where('id', '=', 'hooks-test')
198+
.catch((err: Error) => log.error(err.message))
199+
}
200+
193201
networks.forEach((network) => {
194202
if (!networksIds.includes(network.id)) {
195203
query('networks')
@@ -202,12 +210,6 @@ async function setupNetworksTable(): Promise<void> {
202210
.catch((err: Error) => log.error(err.message))
203211
}
204212
})
205-
if (networksIds.includes('nft-dev')) {
206-
query('networks')
207-
.del()
208-
.where('id', '=', 'nft-dev')
209-
.catch((err: Error) => log.error(err.message))
210-
}
211213
}
212214

213215
async function setupAmendmentsEnabledTable(): Promise<void> {

0 commit comments

Comments
 (0)