Skip to content

Commit

Permalink
chore: abstractJS
Browse files Browse the repository at this point in the history
  • Loading branch information
joepegler committed Jan 15, 2025
1 parent 89ef704 commit e5ef20c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 21 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Biconomy](https://img.shields.io/badge/Made_with_%F0%9F%8D%8A_by-Biconomy-ff4e17?style=flat)](https://biconomy.io) [![License MIT](https://img.shields.io/badge/License-MIT-blue?&style=flat)](./LICENSE) [![codecov](https://codecov.io/github/bcnmy/sdk/graph/badge.svg?token=DTdIR5aBDA)](https://codecov.io/github/bcnmy/sdk)

# SDK 🚀
# abstractJS 🚀

[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/bcnmy/sdk)

Expand Down
24 changes: 4 additions & 20 deletions src/sdk/account/decorators/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import type { BaseMultichainSmartAccount } from "../toMultiChainNexusAccount"
import type { MultichainContract } from "../utils/getMultichainContract"
import {
type BuildBaseInstructionsParams,
buildBaseInstructions
} from "./instructions/buildBaseInstructions"
import { type BuildIntentParams, buildIntent } from "./instructions/buildIntent"
buildBaseInstructions,
type BuildIntentParams,
buildIntent
} from "./instructions"

/**
* Base parameters for building instructions
Expand All @@ -20,21 +21,6 @@ export type BaseInstructionsParams = {
currentInstructions?: Instruction[]
}

/**
* Configuration for bridging tokens between chains
* @property amount - The amount of tokens to bridge
* @property mcToken - The multichain token contract to bridge
* @property chain - The destination chain for the bridge operation
*/
export type BridgeInstructionsForBridgeAction = {
/** The amount of tokens to require */
amount: bigint
/** The token to require */
mcToken: MultichainContract<typeof erc20Abi>
/** The chain to require the token on */
chain: Chain
}

/**
* Default build action which is used to build instructions for a chain
*/
Expand Down Expand Up @@ -96,8 +82,6 @@ export const build = async (
baseParams: BaseInstructionsParams,
parameters: BuildInstructionTypes
): Promise<Instruction[]> => {
console.log({ baseParams, parameters })

const { type, data } = parameters

switch (type) {
Expand Down

0 comments on commit e5ef20c

Please sign in to comment.