UNPKG

@akashicpay/sdk

Version:

SDK to interact with the Akashic ecosystem

41 lines 1.54 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const build_sdk_1 = require("./build-sdk"); const testOtk = { key: { pub: { pkcs8pem: '0x03894d43684b929e49747a91126b076edb34d44685e05f28b73c6b2888819f7217', }, prv: { pkcs8pem: '0x2d99270559d7702eadd1c5a483d0a795566dc76c18ad9d426c932de41bfb78b7', }, }, name: 'otk', type: 'secp256k1', phrase: 'tiger victory govern purse helmet art enroll slab private opinion scale lady', identity: 'AS98e8c7bf41212af803ddfa4491db4a5a4519a9c1dabb3c7ff3cb79d8f7eb23a3', }; describe('Basic Flows', () => { let sdk; beforeAll(async () => { sdk = await (0, build_sdk_1.buildSDKInstance)({ l2Address: testOtk.identity, privateKey: testOtk.key.prv.pkcs8pem, }); }); beforeEach(() => { jest.clearAllMocks(); }); it.skip('Should lookup an L2 address on staging', async () => { const l2Address = 'ASec45742242fba53099a4571ce846541400c0926b4d24cfd0cca6ed13d0229e6c'; const result = await sdk.lookForL2Address(l2Address); expect(result.l2Address).toStrictEqual(l2Address); }); it.todo('Should create a new key'); it.todo('Should send an L1 transaction'); it.todo('Should send an L2 transaction'); it.todo('Should get transfers for user'); it.todo('Should get balance of user'); it.todo('Should get transaction details of a transfer'); }); //# sourceMappingURL=basic-flows.e2e-spec.js.map