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

feat(jellyfish-api-core): Add account withdrawFutureSwap RPC #1323

Merged
merged 44 commits into from
Apr 11, 2022
Merged
Show file tree
Hide file tree
Changes from 43 commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
4468967
Added dfip2203 futures rpcs.
surangap Mar 28, 2022
68f69fa
Added listFutureSwapHistory rpc.
surangap Mar 29, 2022
a133624
Updated futureswap API.
surangap Apr 1, 2022
a9990a2
Added futureswap tests.
surangap Apr 3, 2022
fa1ca7d
Updated tests.
surangap Apr 4, 2022
4d137e2
Addted a test to withdraw fututre swap
chanakasameera Apr 5, 2022
6999c86
Revert "Addted a test to withdraw fututre swap"
chanakasameera Apr 5, 2022
0207801
Added dfip2203 futures rpcs.
surangap Mar 28, 2022
2320d99
Added listFutureSwapHistory rpc.
surangap Mar 29, 2022
77e19d8
Updated futureswap API.
surangap Apr 1, 2022
a6bcedd
Added futureswap tests.
surangap Apr 3, 2022
9f8f3a8
Updated tests.
surangap Apr 4, 2022
7e9feaa
Addted a test to withdraw fututre swap
chanakasameera Apr 5, 2022
247656e
Revert "Addted a test to withdraw fututre swap"
chanakasameera Apr 5, 2022
8a71f88
Fixed failing tests due to ain 1159.
surangap Apr 5, 2022
2f53c1c
Added withdraw future swap pass test cases
chanakasameera Apr 5, 2022
45b1385
Merge branch 'surangap/dfi2203-futures' of github.com:DeFiCh/jellyfis…
chanakasameera Apr 5, 2022
0f56c0e
Merge branch 'surangap/dfi2203-futures' into chanakasameera/dfi2203-f…
chanakasameera Apr 5, 2022
efb7d52
Updated tests.
surangap Apr 5, 2022
703243a
Removed untested futureswap extra APIs.
surangap Apr 5, 2022
2205f5b
Merge branch 'surangap/dfi2203-futures' of github.com:DeFiCh/jellyfis…
chanakasameera Apr 6, 2022
e653cdc
fix pg as master-35ad71b82 require participate pool with liq
canonbrother Apr 6, 2022
20c3641
Merge branch 'main' into surangap/dfi2203-futures
canonbrother Apr 6, 2022
ca22ab2
Added withdraw future swap fail test cases
chanakasameera Apr 6, 2022
cfd7852
Fixed failing test due to ain 1159.
surangap Apr 6, 2022
deaffcd
Added tests to withdraw 1 satoshi of future amount
chanakasameera Apr 6, 2022
362118a
Merge branch 'surangap/dfi2203-futures' of github.com:DeFiCh/jellyfis…
chanakasameera Apr 6, 2022
b4c2896
Merge branch 'surangap/dfi2203-futures' into chanakasameera/dfi2203-f…
chanakasameera Apr 6, 2022
267c4d5
Removed unwanted codes for this pr
chanakasameera Apr 6, 2022
9be53ef
Added tests with utxo
chanakasameera Apr 6, 2022
cffe11a
Merge branch 'main' into chanakasameera/dfi2203-futures-withdrawfutur…
chanakasameera Apr 7, 2022
d356563
Added tests according to review comments
chanakasameera Apr 7, 2022
3d6fcb0
Added/updated tests as per review comments
chanakasameera Apr 7, 2022
84f544c
Added/updated tests as per review comments - part 2
chanakasameera Apr 8, 2022
8680acf
Merge branch 'main' into chanakasameera/dfi2203-futures-withdrawfutur…
chanakasameera Apr 8, 2022
7923f2a
Added a minor update for the test with multiple future swaps
chanakasameera Apr 8, 2022
46102c3
Merge branch 'chanakasameera/dfi2203-futures-withdrawfutureswap' of g…
chanakasameera Apr 8, 2022
133b85b
Merge branch 'main' into chanakasameera/dfi2203-futures-withdrawfutur…
chanakasameera Apr 9, 2022
ab90df5
Merge branch 'main' into chanakasameera/dfi2203-futures-withdrawfutur…
chanakasameera Apr 11, 2022
88b5bd0
Updated/Added tests according to review comments
chanakasameera Apr 11, 2022
8c6a82b
Merge branch 'main' into chanakasameera/dfi2203-futures-withdrawfutur…
chanakasameera Apr 11, 2022
40a2c81
Updated/Added tests according to review comments 2
chanakasameera Apr 11, 2022
fea542c
Updated/Added tests according to review comments 3
chanakasameera Apr 11, 2022
e345d18
Updated test case names
chanakasameera Apr 11, 2022
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
22 changes: 22 additions & 0 deletions docs/node/CATEGORIES/08-account.md
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,28 @@ interface UTXO {
vout: number
}
```

## withdrawFutureSwap

Creates and submits to the network a withdrawal from futures contract transaction.

```ts title="client.account.withdrawFutureSwap()"
interface account {
withdrawFutureSwap (future: FutureSwap, utxos: UTXO[] = []): Promise<string>
}

interface FutureSwap {
address: string
amount: string
destination?: string
}

interface UTXO {
txid: string
vout: number
}
```

## getPendingFutureSwaps

Get specific pending futures.
Expand Down
Loading