Skip to content

Commit

Permalink
feat: add Plume Mainnet and replace Plume Testnet with Plume Devnet (#…
Browse files Browse the repository at this point in the history
…3102)

* feat: add Plume Mainnet and replace Plume Testnet with Plume Devnet

* Update src/chains/definitions/plume.ts

Co-authored-by: jxom <7336481+jxom@users.noreply.github.com>

---------

Co-authored-by: jxom <7336481+jxom@users.noreply.github.com>
  • Loading branch information
eyqs and jxom authored Dec 7, 2024
1 parent 42fbfca commit ddc697d
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/chains/definitions/plume.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { defineChain } from '../../utils/chain/defineChain.js'

const sourceId = 1 // ethereum

export const plume = /*#__PURE__*/ defineChain({
id: 98_865,
name: 'Plume Mainnet',
nativeCurrency: {
name: 'Plume Ether',
symbol: 'ETH',
decimals: 18,
},
rpcUrls: {
default: {
http: ['https://rpc.plumenetwork.xyz'],
webSocket: ['wss://rpc.plumenetwork.xyz'],
},
},
blockExplorers: {
default: {
name: 'Blockscout',
url: 'https://explorer.plumenetwork.xyz',
apiUrl: 'https://explorer.plumenetwork.xyz/api',
},
},
sourceId,
})
28 changes: 28 additions & 0 deletions src/chains/definitions/plumeDevnet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { defineChain } from '../../utils/chain/defineChain.js'

const sourceId = 11_155_111 // sepolia

export const plumeTestnet = /*#__PURE__*/ defineChain({
id: 98_864,
name: 'Plume Devnet',
nativeCurrency: {
name: 'Plume Sepolia Ether',
symbol: 'ETH',
decimals: 18,
},
rpcUrls: {
default: {
http: ['https://test-rpc.plumenetwork.xyz'],
webSocket: ['wss://test-rpc.plumenetwork.xyz'],
},
},
blockExplorers: {
default: {
name: 'Blockscout',
url: 'https://test-explorer.plumenetwork.xyz',
apiUrl: 'https://test-explorer.plumenetwork.xyz/api',
},
},
testnet: true,
sourceId,
})
3 changes: 3 additions & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,9 @@ export { phoenix } from './definitions/phoenix.js'
export { planq } from './definitions/planq.js'
export { playfiAlbireo } from './definitions/playfiAlbireo.js'
export { plinga } from './definitions/plinga.js'
export { plume } from './definitions/plume.js'
export { plumeDevnet } from './definitions/plumeDevnet.js'

Check failure on line 317 in src/chains/index.ts

View workflow job for this annotation

GitHub Actions / Verify / Test Environments (bun)

Module '"./definitions/plumeDevnet.js"' has no exported member 'plumeDevnet'.

Check failure on line 317 in src/chains/index.ts

View workflow job for this annotation

GitHub Actions / Verify / Test Environments (node-latest)

Module '"./definitions/plumeDevnet.js"' has no exported member 'plumeDevnet'.
/** @deprecated Use `plumeDevnet` instead. */
export { plumeTestnet } from './definitions/plumeTestnet.js'
export { polterTestnet } from './definitions/polterTestnet.js'
export { polygon } from './definitions/polygon.js'
Expand Down

0 comments on commit ddc697d

Please sign in to comment.