Skip to content

Introduce the sdk repo#685

Merged
seunlanlege merged 246 commits intomainfrom
seun/merge-sdk-history
Mar 11, 2026
Merged

Introduce the sdk repo#685
seunlanlege merged 246 commits intomainfrom
seun/merge-sdk-history

Conversation

@seunlanlege
Copy link
Member

The great unification is here

omadoyeabraham and others added 30 commits December 2, 2024 11:30
…tments-to-request-and-response

Added transaction hashes to request and response entities
…tments-to-request-and-response

Dockerfile improvements
Added more rpc endpoints for bsc chapel
… be filterable by update height and block number.
…hine-filter

chore: entity search and state machine filter
Co-authored-by: David Salami <31099392+Wizdave97@users.noreply.github.com>
Co-authored-by: David Salami <31099392+Wizdave97@users.noreply.github.com>
…, handle tetnet/mainnet checks for host chain
seunlanlege and others added 27 commits December 19, 2025 20:41
* introduce price oracle

* introduce IIntentPriceOracle

* simplify spread data

* add [profile.ci]

* revert
* [indexer]: index IntentGatewayV2

* add protocol revenue scehams and handlers

* nit

* use relationships for input, output and predispatch tokens

* remove protocol revenue schema

* use callTracer for nested call to placeOrder

* nit

* pop calldatas to top, make addrs lowercase
* [filler,sdk]: add FillerV2

* submit bid if solverSelection active

* fix computeOrderCommitment in indexer, buildTokenStateOverrides in sdk

* add fee token cache in sdk class

* cache sdk helper

* refactor HyperbridgeService, check solverSelection at core level

* conditional check status.isInBlock or status.isFinalized

* delegation, approvals and architecture simplification

* remove Etherscan from config

* add BidStorageService for analysis and bids retracement

* nit

* rename stuff

* update README

* resolve pr comments

* run confirmation check and evaluation together, seperation execution

* disable filler v1 tests

* complete profitability with bps logic

* nit

* filler pays out their max
…er (#269)

* [sdk]: add IntentGatewayV2 encoding tests, fix packGasLimits byte order

* fix build
* [sdk]: add IntentGatewayV2 encoding tests, fix packGasLimits byte order

* test intentsCoprocessor and userOp decoding

* use existing connection from SubstrateChain

* full executor function and bids validation by USD value

* update entry point address

* docs

* fix build

* resolve nit

* encode as erc7821 batch call

* push working code

* nit

* base tip should be 12 decimals

Co-authored-by: David Salami <31099392+Wizdave97@users.noreply.github.com>

* Update packages/sdk/src/chains/intentsCoprocessor.ts

Co-authored-by: David Salami <31099392+Wizdave97@users.noreply.github.com>

* add cancel generator, update preparePlaceOrder

* add quoteCancelNative

* build

* add order generator fn, reorder and docs

* use commitment as key for entrypoint nonce

* use 100 gwei as MIN_PRIORITY_FEE, throw error at failed estimate

* set filler outputs in cache and use it

---------

Co-authored-by: David Salami <31099392+Wizdave97@users.noreply.github.com>
* fix: improve substrate method

* chore: bumped sdk
* [filler]: estimate user operation

* Update filler-config-example.toml

* override state before getting estimate from bundler

* refactor estimate function

* replace confirmation policy with interpolated curve, update filler bps

* make filler config readable

* nit
* introduce support for polkadot testnet to the indexer

* config Intents V2 mainnet address

* add tron nile testnet

* add intent gateway v2 address to config so types are generated

* update docker image

* polygon execution layer supports fetching finalized blocks

---------

Co-authored-by: royvardhan <royvardhan.official@gmail.com>
Co-authored-by: David Salami <wizdave97@gmail.com>
…GV2 indexer fixes (#279)

* [filler-v2,sdk]: add Rebalancing Service, Tron tests, CI fixes

* [indexer]: merge david/fix-node-fetch, fix IGV2 indexing

* [indexer, sdk]: add envs in CI, unskip timeout tests

* update docker

* split CI workflow into multiple steps

* nit

* Update test-sdk.yml

* add bundler url to env

* nits

* fix big int serializing in tests

* ignore errors from background async tasks

* update vitest

* skip timeout test

* make test more predictable

* fix

* use local indexer

* reorder tests

* nit

* add place order test

---------

Co-authored-by: David Salami <wizdave97@gmail.com>
* fix: error generating mmr proofs

* fix: skip mmr proof generation for timed out requests

* chore: fixed changelog
…ills indexing (#285)

* simplify estimateFillOrderV2 api

* update placeOrder to receive a signed txn and broadcast

* allow same chain swaps and add fx strategy

* filler constructs cNGN price

* yeild CANCELLATION_COMPLETE

* get the cancel calldata signed from the user

* nit

* set account code before simulating user op

* set code cache at init

* add price policy to fx strategy

* remove enum

* update sdk to execute partial fills

* allow partial fills in fx swap

* send approvals in batch txn

* add partial fill rules in fx, docs and cleanup

* create Tron chain

* hardcode nonce

* update IChain and use it in event monitor

* use IEvmChain

* refactor broadcastTransaction

* single end-to-end executor

* decompose IntentsV2 into smaller parts

* nit

* resolve pr comments

* hardcode 0 nonce for simulation

* log error

* fallback should use not hardcode any token

* yield partial fill details

* accept graffitti

* nit

* simplify validateAndSortBids

* yield filled

* support multi-token output orders in BidManager.validateAndSortBids

* fallback to trace call if recorded slots return undefined

* refresh fee token cache and some nits

* exit computing order usd value if any token pricing fails

* Update BidManager.ts

* generalize fx strategy

* use types from binance/wallet

* add quote and cancel from dest

* [indexer]: index partial fills

* nits

* use strategy derived order value for confirmation policy

---------

Co-authored-by: Seun Lanlege <seun@polytope.technology>
* relayer stats for  transaction handling

* indexed collator rewards

* implement signature decoding for the relayer field
introduce request commitment in asset teleport
per transaction indexing for relayer rewards and collator rewards
schema renaming changes

* use scale-ts
remove redundant checks and type

* remove token list indexing and services

* relayer stats migration
remove reputation asset balance indexing

* remove migration and token List

* remove migration

* some improvements

* add retries for fetch

* merge main

* fix build

* version some entities

* add migration script

* nit

* update migration and test,
update sdk

* migrate command update

* make createdAt optional

* fix

* index relayer withdraw event

* Make cumulative withdrawn optional

* Enhance data migration script to order by _block_range DESC for latest row versions

* Rename OrderV2 to IOrderV2 in schema.graphql and update related imports in intentGatewayV2.service.ts

* Update schema.graphql to use IOrderV2 types and adjust intentGatewayV2.service.ts imports accordingly

* use alternative deduplication

* fail if any row insertion fails

* Enhance data migration script to stringify JSON objects for jsonb columns during row insertion

* update intent gateway v2 config

* bump sdk

---------

Co-authored-by: David Salami <wizdave97@gmail.com>
Co-authored-by: David Salami <31099392+Wizdave97@users.noreply.github.com>
* delete filler v1

* add fx strategy to binary

* confirmation policy is encapsulated to strategies

* fix tests

* nit fixes, fx strategy test

* Update packages/sdk/src/protocols/intentsV2/GasEstimator.ts

Co-authored-by: David Salami <31099392+Wizdave97@users.noreply.github.com>

* simplex docker image builds

* some nice cosmetics

* tests to prevent silent ci breaks, update simulation

* more cosmetics

* bump sdk

* bump gas values

* add entrypoint deposit config, more logs

* calculate profit based on spreads and fees combined

* throw error at 0 estimates

* chore: bump sdk

* bump call gas limit more

* simplify entrypoint deposit check

* handle partial fill edge cases

* dont reject partial fills

* retract bids at order filled event

* handle race conditions, filter event  by filler

* try to get bids from rpc directly first

* retract bids after 1 hour of submission

* some fixes

* misc fixes

* merge

* simplify catching err

* get signed cancel txn from user

* export intent gateway abi

* jsdoc & interface cleanups

* pad addresses to bytes32

* dedupe functions

---------

Co-authored-by: royvardhan <royvardhan.official@gmail.com>
Co-authored-by: David Salami <31099392+Wizdave97@users.noreply.github.com>
Co-authored-by: Fortune Ogunsusi <fortune@polytope.technology>
Co-authored-by: David Salami <wizdave97@gmail.com>
@seunlanlege seunlanlege merged commit ba1b37c into main Mar 11, 2026
1 of 11 checks passed
@seunlanlege seunlanlege deleted the seun/merge-sdk-history branch March 11, 2026 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants