-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: toChain address validation * chore: remove chain name to identifier converter * chore: add integration test * chore: add chain identifier validation with suggestions * chore: add chain identifiers list * chore: use chain identifiers for wrap * chore: remove version bumping * version bump * chore: update changelog * fix typo * fix: github actions deps * chore: improve unwrap * chore: update chain ids * bump version * chore: update past changelog * chore: update changelog * fix: tests * chore: revert unwrap function
- Loading branch information
Showing
10 changed files
with
139 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import { AxelarAssetTransfer } from "../../../src"; | ||
|
||
describe("AxelarAssetTransfer", () => { | ||
jest.setTimeout(20000); | ||
let sdk: AxelarAssetTransfer; | ||
|
||
beforeAll(() => { | ||
sdk = new AxelarAssetTransfer({ | ||
environment: "testnet", | ||
}); | ||
}); | ||
|
||
describe("getDepositAddressForNativeWrap()", () => { | ||
let address: string; | ||
beforeAll(async () => { | ||
address = await sdk.getDepositAddressForNativeWrap( | ||
"avalanche", | ||
"ethereum-2", | ||
"0xA57ADCE1d2fE72949E4308867D894CD7E7DE0ef2" | ||
); | ||
}); | ||
|
||
it("should get native deposit address", () => { | ||
expect(address).toBeTruthy(); | ||
console.log({ | ||
address, | ||
}); | ||
}); | ||
}); | ||
|
||
describe("getDepositAddressForNativeUnwrap()", () => { | ||
let depositAddress: string; | ||
beforeAll(async () => { | ||
const result = await sdk.getDepositAddressForNativeUnwrap( | ||
"moonbeam", | ||
"avalanche", | ||
"0xA57ADCE1d2fE72949E4308867D894CD7E7DE0ef2" | ||
); | ||
depositAddress = result; | ||
}); | ||
|
||
it("should get native deposit address", () => { | ||
expect(depositAddress).toBeTruthy(); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.