diff --git a/package.json b/package.json index cd41a94..0c638b8 100644 --- a/package.json +++ b/package.json @@ -16,16 +16,16 @@ "prepare": "make" }, "dependencies": { - "@wharfkit/antelope": "^1.0.4", + "@wharfkit/antelope": "^1.0.5", "@wharfkit/protocol-esr": "^1.3.0", "isomorphic-ws": "^5.0.0", "ws": "^8.13.0" }, "resolutions": { - "@wharfkit/antelope": "^1.0.4" + "@wharfkit/antelope": "^1.0.5" }, "peerDependencies": { - "@wharfkit/session": "^1.2.5" + "@wharfkit/session": "^1.2.7" }, "devDependencies": { "@rollup/plugin-alias": "^3.1.4", @@ -40,8 +40,8 @@ "@types/node": "^18.7.18", "@typescript-eslint/eslint-plugin": "^5.20.0", "@typescript-eslint/parser": "^5.20.0", - "@wharfkit/mock-data": "^1.2.0", - "@wharfkit/session": "^1.2.5", + "@wharfkit/mock-data": "^1.3.0", + "@wharfkit/session": "^1.2.7", "@wharfkit/signing-request": "^3.1.0", "@wharfkit/wallet-plugin-privatekey": "^1.1.0", "chai": "^4.3.4", diff --git a/test/utils/mock-context.ts b/test/utils/mock-context.ts index a1e0788..c0d2bb7 100644 --- a/test/utils/mock-context.ts +++ b/test/utils/mock-context.ts @@ -42,6 +42,7 @@ const wallet = makeWallet() export const mockLoginContext: LoginContext = { appName: 'mock', + arbitrary: {}, fetch: mockFetch, // Required for unit tests ui: new MockUserInterface(), walletPlugins: [wallet], diff --git a/yarn.lock b/yarn.lock index fc1a311..e0534bc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -603,10 +603,22 @@ pako "^2.0.4" tslib "^2.1.0" +"@wharfkit/account@^1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@wharfkit/account/-/account-1.0.0.tgz#961af9a6b36208894b01c644031c7db873139451" + integrity sha512-I+5iT0DnE0oYQm9v/E+VIgyN+zd1jy8bbaJGxV2rAmHBPn48NKO9PV0EGWgZ8pfNvx/Tf5fG1kZpIbmTQ8Q+8A== + dependencies: + "@wharfkit/antelope" "^1.0.0" + "@wharfkit/common" "^1.2.0" + "@wharfkit/contract" "^1.0.0" + "@wharfkit/resources" "^1.1.0" + "@wharfkit/token" "^1.0.1" + tslib "^2.1.0" + "@wharfkit/antelope@^1.0.0", "@wharfkit/antelope@^1.0.2", "@wharfkit/antelope@^1.0.4", "@wharfkit/antelope@^1.0.5": - version "1.0.4" - resolved "https://registry.yarnpkg.com/@wharfkit/antelope/-/antelope-1.0.4.tgz#f88305957c82fac41862a973581797ed29b5c287" - integrity sha512-FGB7YiTRz86T2V8XJNJGrrNBnIx9y+DV9MqXNwEHBwxzmXdA8Gurk7AQ5RfIQEllJeZbeMd6BeRT1nxQUUTRwQ== + version "1.0.5" + resolved "https://registry.yarnpkg.com/@wharfkit/antelope/-/antelope-1.0.5.tgz#a33893137e9127847128725d185a2e940a2e243a" + integrity sha512-/ptouzm4cRVY5seLrvfQR8r5KzzHS+4UOycSiMNmZFmKRZWI/T29dMLJn4IXgakkghPB1iiSD+QcDpguyNGTpA== dependencies: bn.js "^4.11.9" brorand "^1.1.0" @@ -622,14 +634,24 @@ dependencies: tslib "^2.1.0" -"@wharfkit/mock-data@^1.2.0": - version "1.2.0" - resolved "https://registry.yarnpkg.com/@wharfkit/mock-data/-/mock-data-1.2.0.tgz#fa5749f1332e413ecd4126dedf1d17724840df41" - integrity sha512-R779GKbzVeJFvO/VMLnjSua4YteQiuJ1WX/MjEeo2ftP0aPgaLNEoFKGa7veAvYEv/6mgEcS4Sm5gyFi1Enxhg== +"@wharfkit/contract@^1.0.0": + version "1.1.4" + resolved "https://registry.yarnpkg.com/@wharfkit/contract/-/contract-1.1.4.tgz#5d65a7effa02bb71c98a7493cfdca2472578e6d5" + integrity sha512-7jRgyAHrxg0/RJzOoGn4r1Md2Kho2Bozxzv+sn3c5e7ii8w9nQjyyVnYmFEVRFh6pQ0BtR/pqh6wrYJYTfXQIA== dependencies: - "@wharfkit/antelope" "^1.0.0" - "@wharfkit/session" "^1.1.0-rcfinal" - "@wharfkit/wallet-plugin-privatekey" "^1.0.0" + "@wharfkit/abicache" "^1.2.0" + "@wharfkit/antelope" "^1.0.4" + "@wharfkit/signing-request" "^3.1.0" + tslib "^2.1.0" + +"@wharfkit/mock-data@^1.3.0": + version "1.3.0" + resolved "https://registry.yarnpkg.com/@wharfkit/mock-data/-/mock-data-1.3.0.tgz#7a9caa7c7fb2ad839bc12593de1b7a546b673ae6" + integrity sha512-LkhAkrUOvG6o+lPWb2Q6JCrs9++F2XowGK42PODh35Xu9an5H+THMGjpUhTC1sPiYkfjhkmBbAzMpZbHjkXj4w== + dependencies: + "@wharfkit/antelope" "^1.0.5" + "@wharfkit/session" "^1.2.7" + "@wharfkit/wallet-plugin-privatekey" "^1.1.0" node-fetch "^2.6.1" tslib "^2.1.0" @@ -644,24 +666,22 @@ isomorphic-ws "^5.0.0" ws "^8.13.0" -"@wharfkit/session@^1.1.0-rcfinal": - version "1.1.0-rcfinal" - resolved "https://registry.yarnpkg.com/@wharfkit/session/-/session-1.1.0-rcfinal.tgz#29a9f40dca8557e96d5e44c1498b09eb641f47e1" - integrity sha512-UijDlP2yE8WoprAXz8EpAyz1GyxWv9OloRGApTUKM/lMuSk1U2d7vefQzyXTn14f1npd7bfBzeTQ5piTerBHww== +"@wharfkit/resources@^1.1.0": + version "1.2.1" + resolved "https://registry.yarnpkg.com/@wharfkit/resources/-/resources-1.2.1.tgz#02cbc3b2a986d622154bb71820b0af60bf0de59d" + integrity sha512-K5GCvps3wHnGk7z5wtQqtrrpt5gz18YUTYkuPXa6fPY/zim4QLFED5uNe9eULJ2dwNAJPZ9quGD8TxKtaCazrA== dependencies: - "@wharfkit/abicache" "^1.2.0" "@wharfkit/antelope" "^1.0.0" - "@wharfkit/common" "^1.2.0" - "@wharfkit/signing-request" "^3.1.0" - pako "^2.0.4" + bn.js "^4.11.9" tslib "^2.1.0" -"@wharfkit/session@^1.2.5": - version "1.2.5" - resolved "https://registry.yarnpkg.com/@wharfkit/session/-/session-1.2.5.tgz#56a8a99de0424d96d0b00488180db3c9729d3609" - integrity sha512-EXKA9EB/8zF1CtLU/0ZXGAzieD8/vZDLd3jzj+zSQjZ4TyI8m22qxU/78y3JOvAS6g1m6Mh5bqDPCZN6oBWtxA== +"@wharfkit/session@^1.2.7": + version "1.2.7" + resolved "https://registry.yarnpkg.com/@wharfkit/session/-/session-1.2.7.tgz#8ff802d311038058d0cd5f65abcb1a85725bd18f" + integrity sha512-EP6uszhUlC90UAHDg+ZoXJid4z+d+iXPgOcMlWfNivq6XtyYXU+uDO9nyuZ9aiGezUs0dcnWuXsB8SM8vuR2Nw== dependencies: "@wharfkit/abicache" "^1.2.1" + "@wharfkit/account" "^1.0.0" "@wharfkit/antelope" "^1.0.2" "@wharfkit/common" "^1.2.0" "@wharfkit/signing-request" "^3.1.0" @@ -676,11 +696,14 @@ "@wharfkit/antelope" "^1.0.0" tslib "^2.0.3" -"@wharfkit/wallet-plugin-privatekey@^1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@wharfkit/wallet-plugin-privatekey/-/wallet-plugin-privatekey-1.0.0.tgz#2600cce1117ce9391c8078649e05ceaf93780f1d" - integrity sha512-V+/7T/cwoHM8fDaM3MZ1DFKrX2+NddBkkWJ8BIFfmEZnGR1W8Qr77t+piOP0/6UM2etmuZh98XLwZS33vORQ0A== +"@wharfkit/token@^1.0.1": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@wharfkit/token/-/token-1.0.1.tgz#072f51d0294756b26b4270c9cd68af2f27db064b" + integrity sha512-vwGaNiZvVf2X64BQLcObF5TxVZhmym1l6vQsNlTrNA225EhLEY15FI8W2HJ9/TrrTj3ZjPbzXtnQWedGsc41wg== dependencies: + "@wharfkit/antelope" "^1.0.0" + "@wharfkit/contract" "^1.0.0" + bn.js "^4.11.9" tslib "^2.1.0" "@wharfkit/wallet-plugin-privatekey@^1.1.0":