Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

Commit

Permalink
CORE-1952 Add V4 starkex contract bindings (#426)
Browse files Browse the repository at this point in the history
* update OpenAPI generated API client code

* add prepare withdrawal v2 workflow

* add stark v4 factory

* rename core factory to stark v3

* update changelog and version
  • Loading branch information
kaihirota authored Feb 26, 2024
1 parent 4fd4f5d commit 456483e
Show file tree
Hide file tree
Showing 16 changed files with 6,433 additions and 42 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.6.0] - 2024-02-26

### Added

- `prepareWithdrawal` has been updated to use V2 withdrawal logic for StarkEx V4 contract.
- Add StarkEx V4 contract bindings so that SDK can interact with the contract.

## [2.5.4] - 2024-02-20

### Added
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@imtbl/core-sdk",
"version": "2.5.4",
"version": "2.6.0",
"description": "Immutable Core SDK",
"main": "dist/index.cjs.js",
"module": "dist/index.es.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import type {
OnEvent,
} from "../common";

export interface CoreInterface extends utils.Interface {
export interface StarkV3Interface extends utils.Interface {
functions: {
"announceAvailabilityVerifierRemovalIntent(address)": FunctionFragment;
"announceVerifierRemovalIntent(address)": FunctionFragment;
Expand Down Expand Up @@ -864,12 +864,12 @@ export type LogWithdrawalPerformedEvent = TypedEvent<
export type LogWithdrawalPerformedEventFilter =
TypedEventFilter<LogWithdrawalPerformedEvent>;

export interface Core extends BaseContract {
export interface StarkV3 extends BaseContract {
connect(signerOrProvider: Signer | Provider | string): this;
attach(addressOrName: string): this;
deployed(): Promise<this>;

interface: CoreInterface;
interface: StarkV3Interface;

queryFilter<TEvent extends TypedEvent>(
event: TypedEventFilter<TEvent>,
Expand Down
Loading

0 comments on commit 456483e

Please sign in to comment.