Skip to content

Commit 59477ea

Browse files
committed
feat(chains): add Intuition mainnet and testnet
Made-with: Cursor
1 parent 209376e commit 59477ea

5 files changed

Lines changed: 104 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { expect, test } from 'vitest'
2+
3+
import { intuition } from './intuition.js'
4+
5+
test('intuition', () => {
6+
expect(intuition.id).toMatchInlineSnapshot('1155')
7+
expect(intuition.name).toMatchInlineSnapshot('"Intuition"')
8+
expect(intuition.nativeCurrency).toMatchInlineSnapshot(`
9+
{
10+
"decimals": 18,
11+
"name": "TRUST",
12+
"symbol": "TRUST",
13+
}
14+
`)
15+
expect(intuition.rpcUrls.default.http).toMatchInlineSnapshot(`
16+
[
17+
"https://rpc.intuition.systems",
18+
]
19+
`)
20+
expect(intuition.blockExplorers?.default.url).toMatchInlineSnapshot(
21+
'"https://explorer.intuition.systems"',
22+
)
23+
expect(intuition.sourceId).toMatchInlineSnapshot('8453')
24+
})
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { defineChain } from '../../utils/chain/defineChain.js'
2+
3+
const sourceId = 8453
4+
5+
export const intuition = /*#__PURE__*/ defineChain({
6+
id: 1155,
7+
name: 'Intuition',
8+
nativeCurrency: {
9+
decimals: 18,
10+
name: 'TRUST',
11+
symbol: 'TRUST',
12+
},
13+
rpcUrls: {
14+
default: {
15+
http: ['https://rpc.intuition.systems'],
16+
webSocket: ['wss://rpc.intuition.systems'],
17+
},
18+
},
19+
blockExplorers: {
20+
default: {
21+
name: 'Intuition Explorer',
22+
url: 'https://explorer.intuition.systems',
23+
},
24+
},
25+
sourceId,
26+
})
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { expect, test } from 'vitest'
2+
3+
import { intuitionTestnet } from './intuitionTestnet.js'
4+
5+
test('intuitionTestnet', () => {
6+
expect(intuitionTestnet.id).toMatchInlineSnapshot('13579')
7+
expect(intuitionTestnet.name).toMatchInlineSnapshot('"Intuition Testnet"')
8+
expect(intuitionTestnet.nativeCurrency).toMatchInlineSnapshot(`
9+
{
10+
"decimals": 18,
11+
"name": "tTRUST",
12+
"symbol": "tTRUST",
13+
}
14+
`)
15+
expect(intuitionTestnet.rpcUrls.default.http).toMatchInlineSnapshot(`
16+
[
17+
"https://testnet.rpc.intuition.systems",
18+
]
19+
`)
20+
expect(intuitionTestnet.blockExplorers?.default.url).toMatchInlineSnapshot(
21+
'"https://testnet.explorer.intuition.systems"',
22+
)
23+
expect(intuitionTestnet.sourceId).toMatchInlineSnapshot('8453')
24+
expect(intuitionTestnet.testnet).toMatchInlineSnapshot('true')
25+
})
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { defineChain } from '../../utils/chain/defineChain.js'
2+
3+
const sourceId = 8453
4+
5+
export const intuitionTestnet = /*#__PURE__*/ defineChain({
6+
id: 13579,
7+
name: 'Intuition Testnet',
8+
nativeCurrency: {
9+
decimals: 18,
10+
name: 'tTRUST',
11+
symbol: 'tTRUST',
12+
},
13+
rpcUrls: {
14+
default: {
15+
http: ['https://testnet.rpc.intuition.systems'],
16+
webSocket: ['wss://testnet.rpc.intuition.systems'],
17+
},
18+
},
19+
blockExplorers: {
20+
default: {
21+
name: 'Intuition Testnet Explorer',
22+
url: 'https://testnet.explorer.intuition.systems',
23+
},
24+
},
25+
testnet: true,
26+
sourceId,
27+
})

src/chains/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,8 @@ export { injective } from './definitions/injective.js'
299299
export { injectiveTestnet } from './definitions/injectiveTestnet.js'
300300
export { ink } from './definitions/ink.js'
301301
export { inkSepolia } from './definitions/inkSepolia.js'
302+
export { intuition } from './definitions/intuition.js'
303+
export { intuitionTestnet } from './definitions/intuitionTestnet.js'
302304
export { iota } from './definitions/iota.js'
303305
export { iotaTestnet } from './definitions/iotaTestnet.js'
304306
export { iotex } from './definitions/iotex.js'

0 commit comments

Comments
 (0)