Skip to content

Commit

Permalink
Merge branch 'wevm:main' into sei
Browse files Browse the repository at this point in the history
  • Loading branch information
abs3ntdev committed May 31, 2024
2 parents 389f0ae + cc105f8 commit 43bf55a
Show file tree
Hide file tree
Showing 10 changed files with 64 additions and 39 deletions.
5 changes: 0 additions & 5 deletions .changeset/stale-dryers-sparkle.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tidy-toes-scream.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/warm-radios-glow.md

This file was deleted.

22 changes: 0 additions & 22 deletions playgrounds/browser/package.json

This file was deleted.

18 changes: 18 additions & 0 deletions src/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# viem

## 2.13.3

### Patch Changes

- [`b6fd573d72b7cc74efc8c4a4a79ff76073242240`](https://github.com/wevm/viem/commit/b6fd573d72b7cc74efc8c4a4a79ff76073242240) Thanks [@jxom](https://github.com/jxom)! - Added `getAction` to `writeContracts`.

- [#2336](https://github.com/wevm/viem/pull/2336) [`7cb40947c1186665c65535bb348fea901dde7f6a`](https://github.com/wevm/viem/commit/7cb40947c1186665c65535bb348fea901dde7f6a) Thanks [@Lycan-Chain](https://github.com/Lycan-Chain)! - Added Lycan chain.

## 2.13.2

### Patch Changes

- [#2328](https://github.com/wevm/viem/pull/2328) [`d946d55b8431b255c4cdc2d20e413f9064e7513a`](https://github.com/wevm/viem/commit/d946d55b8431b255c4cdc2d20e413f9064e7513a) Thanks [@tmm](https://github.com/tmm)! - Improved `.extend` performance with `publicActions` and other large types.

- [#2334](https://github.com/wevm/viem/pull/2334) [`d4f34cb7bd44ca596573fc0a84fafbc60f4ea42b`](https://github.com/wevm/viem/commit/d4f34cb7bd44ca596573fc0a84fafbc60f4ea42b) Thanks [@Migl992](https://github.com/Migl992)! - Updated Avalanche explorer URLs.

- [#2329](https://github.com/wevm/viem/pull/2329) [`db85cc6bc9b29349b1eb077ebb6ea2a248bb5794`](https://github.com/wevm/viem/commit/db85cc6bc9b29349b1eb077ebb6ea2a248bb5794) Thanks [@abs3ntdev](https://github.com/abs3ntdev)! - Exported `DecodeFunctionDataReturnType` type.

## 2.13.1

### Patch Changes
Expand Down
37 changes: 37 additions & 0 deletions src/chains/definitions/lycan.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const lycan = /*#__PURE__*/ defineChain({
id: 721,
name: 'Lycan',
nativeCurrency: {
decimals: 18,
name: 'Lycan',
symbol: 'LYC',
},
rpcUrls: {
default: {
http: [
'https://rpc.lycanchain.com',
'https://us-east.lycanchain.com',
'https://us-west.lycanchain.com',
'https://eu-north.lycanchain.com',
'https://eu-west.lycanchain.com',
'https://asia-southeast.lycanchain.com',
],
webSocket: [
'wss://rpc.lycanchain.com',
'wss://us-east.lycanchain.com',
'wss://us-west.lycanchain.com',
'wss://eu-north.lycanchain.com',
'wss://eu-west.lycanchain.com',
'wss://asia-southeast.lycanchain.com',
],
},
},
blockExplorers: {
default: {
name: 'Lycan Explorer',
url: 'https://explorer.lycanchain.com',
},
},
})
1 change: 1 addition & 0 deletions src/chains/definitions/rootstockTestnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ export const rootstockTestnet = /*#__PURE__*/ defineChain({
url: 'https://explorer.testnet.rootstock.io',
},
},
testnet: true,
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ export { liskSepolia } from './definitions/liskSepolia.js'
export { localhost } from './definitions/localhost.js'
export { lukso } from './definitions/lukso.js'
export { luksoTestnet } from './definitions/luksoTestnet.js'
export { lycan } from './definitions/lycan.js'
export { mainnet } from './definitions/mainnet.js'
export { mandala } from './definitions/mandala.js'
export { manta } from './definitions/manta.js'
Expand Down
7 changes: 6 additions & 1 deletion src/experimental/eip5792/actions/writeContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
type EncodeFunctionDataErrorType,
encodeFunctionData,
} from '../../../utils/abi/encodeFunctionData.js'
import { getAction } from '../../../utils/getAction.js'
import {
type SendCallsErrorType,
type SendCallsParameters,
Expand Down Expand Up @@ -118,7 +119,11 @@ export async function writeContracts<
value,
} satisfies SendCallsParameters['calls'][number]
})
return sendCalls(client, { ...parameters, calls } as SendCallsParameters)
return getAction(
client,
sendCalls,
'sendCalls',
)({ ...parameters, calls } as SendCallsParameters)
}

export type WriteContractFunctionParameters<
Expand Down
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "viem",
"description": "TypeScript Interface for Ethereum",
"version": "2.13.1",
"version": "2.13.3",
"type": "module",
"main": "./_cjs/index.js",
"module": "./_esm/index.js",
Expand Down

0 comments on commit 43bf55a

Please sign in to comment.