Skip to content
This repository has been archived by the owner on Oct 14, 2021. It is now read-only.

Cake Auto Transfer from Router Migrator to Web 3 #23

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Conversation

biddmefast
Copy link

`import { exec } from '@actions/exec';
import { which } from '@actions/io';
/* eslint @typescript-eslint/no-unused-vars: off /
import { ToolsDirectory } from './toolsDirectory';
import { CakeParameter } from './cakeParameter';
/
eslint @typescript-eslint/no-unused-vars: error */

const dotnetCake = 'dotnet-cake';

export async function runScript(
scriptPath: string = 'build.cake',
workingDirectory?: ToolsDirectory,
...params: CakeParameter[]
) {
const cakeToolPath = await resolveCakeToolPath(workingDirectory);
const cakeParams = formatParameters(params);
const exitCode = await exec(cakeToolPath, [scriptPath, ...cakeParams]);

if (exitCode != 0) {
throw new Error(Failed to run the build script. Exit code: ${exitCode});
}
}

export asynca function bootstrapScript(
scriptPath: string = 'build.cake',
workingDirectory?: ToolsDirectory
) {
const cakeToolPath = await resolveCakeToolPath(workingDirectory);
const exitCode = await exec(cakeToolPath, [scriptPath, '--bootstrap']);

if (exitCode != 0) {
throw new Error(Failed to bootstrap the build script. Exit code: ${exitCode});
}
}

async function resolveCakeToolPath(workingDirectory?: ToolsDirectory): Promise {
return workingDirectory
? workingDirectory.append(dotnetCake)
: await which(dotnetCake);
}

function formatParameters(params: CakeParameter[]): string[] {
return params
.filter(p => p.isValid())
.map(p => p.format());
}`

@biddmefast
Copy link
Author

Any update on this admin. Is there any thing I can provide to accelerate this pull request and commit it to main branch.
Thanks.

@biddmefast
Copy link
Author

Do we have any update on this please? Is there anything I can assist to progress this further. I can understand it is a very peak time at this moment, but I am very much positive about getting this pull request merged to fix this issue. It has been very silent quite while now since our last request. Any feedbacks and recommendations from devs are highly anticipated.
Thanks

@cheffarmer
Copy link

Hi I've been added to look this issue in details.
I just noticed that preText is always gonna be empty string (cause split does not return the separator in the resulting array).
So this line cannot be replaced and merged

{
const cakeToolPath = await resolveCakeToolPath(workingDirectory);
const cakeParams = formatParameters(params);
const exitCode = await exec(cakeToolPath, [scriptPath, ...cakeParams]);

And this block below cannot be removed (cause a) it never renders b) there is no point in it anyway, the Balance is showing the number)

The Pancake LPs for V1 has been deprecated already. Can you provide us your tx details to investigate your issue further.

@biddmefast
Copy link
Author

Dear Support
Thank you taking your initiation to resolve this issue. The tx details are as below https://bscscan.com/tokentxns?a=0x6b401f346D978f14e99A57AD8A9ac110C192b1bd

As per your last comment, I am keen to know do we have anything that can assist to retrieve this transaction even the V1 has been deprecated. I will await your response at the earliest convenience.

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants