1IxI1 / blueprint-scaffold

Bluerpint Scaffold Plugin. Helps you to build a dapp from wrappers which you've wrote for your FunC contracts.
https://www.npmjs.com/package/blueprint-scaffold
17 stars 4 forks source link

Add the Tact functions support? #3

Open howardpen9 opened 7 months ago

howardpen9 commented 7 months ago

Can we have the Tact compiler support maybe T_T

num13ru commented 4 months ago

First of all the main issue with ⚠️ Omitting `Counter`: Cannot be created from address (need to create contract instance when sending) is that wrappers is different

FunC output wrappers/Counter.ts:

...
export class Counter implements Contract {
    constructor(readonly address: Address, readonly init?: { code: Cell; data: Cell }) {}

    static createFromAddress(address: Address) {
        return new Counter(address);
    }
  ...

Tact output wrappers/Counter.ts:

  export * from '../build/Counter/tact_Counter';

So function parseWrapper can't find target class