yearn / yearn-sdk

🦧 SDK for the yearn.finance platform. WIP
https://npm.im/@yfi/sdk
MIT License
53 stars 56 forks source link

feat: add populateApprove method to token interface #283

Closed xgambitox closed 2 years ago

xgambitox commented 2 years ago

Description

Add method to return an unsigned transaction for token approvals

Motivation and Context

Add more composability between interfaces that dont need to execute transaction directly, like for simulations.

How Has This Been Tested?

Tests in src/interfaces/token.spec.ts

github-actions[bot] commented 2 years ago

size-limit report 📦

Path Size
dist/sdk.cjs.production.min.js 44.81 KB (+0.06% 🔺)
dist/sdk.esm.js 45.18 KB (+0.09% 🔺)