Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send message to ingest amount as string #58

Merged
merged 6 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
131,189 changes: 80,179 additions & 51,010 deletions v4-client-js/__native__/__ios__/v4-native-client.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions v4-client-js/examples/native_examples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async function test(): Promise<void> {

const sendTokenPayload = {
subaccountNumber: 0,
amount: 10, // Dydx Token
amount: '10', // Dydx Token
recipient: 'dydx15ndn9c895f8ntck25qughtuck9spv2d9svw5qx',
};
const fees = await simulateTransferNativeToken(JSON.stringify(sendTokenPayload));
Expand Down Expand Up @@ -99,7 +99,7 @@ async function test(): Promise<void> {
const encode = (str: string):string => Buffer.from(str, 'binary').toString('base64');
const encoded = encode(squidPayload);

tx = await withdrawToIBC(0, 13, encoded);
tx = await withdrawToIBC(0, '13', encoded);
console.log(tx);

const connected = await connectNetwork(
Expand Down
4 changes: 2 additions & 2 deletions v4-client-js/examples/transfer_example_send.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async function test(): Promise<void> {
subaccount.address,
TEST_RECIPIENT_ADDRESS,
client.config.denoms.CHAINTOKEN_DENOM,
amount,
amount.toString(),
);

resolve([msg]);
Expand All @@ -55,7 +55,7 @@ async function test(): Promise<void> {
subaccount,
TEST_RECIPIENT_ADDRESS,
client.config.denoms.CHAINTOKEN_DENOM,
amountAfterFee,
amountAfterFee.toString(),
false,
Method.BroadcastTxCommit,
);
Expand Down
149 changes: 147 additions & 2 deletions v4-client-js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion v4-client-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dydxprotocol/v4-client-js",
"version": "0.39.0",
"version": "0.39.1",
"description": "General client library for the new dYdX system (v4 decentralized)",
"main": "build/src/index.js",
"scripts": {
Expand Down Expand Up @@ -44,6 +44,7 @@
"bech32": "^1.1.4",
"bignumber.js": "^9.1.1",
"ethereum-cryptography": "^2.0.0",
"ethers": "^6.6.1",
"long": "^4.0.0",
"protobufjs": ">=6.11.4",
"ws": "^8.13.0"
Expand Down
Loading