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
package main | |
import ( | |
"encoding/hex" | |
"fmt" | |
log "github.com/sirupsen/logrus" | |
"github.com/tdex-network/tdex-daemon/pkg/explorer" | |
esplora "github.com/tdex-network/tdex-daemon/pkg/explorer/esplora" | |
"github.com/vulpemventures/go-elements/address" |
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
version: "3.7" | |
services: | |
oceand: | |
container_name: oceand-regtest | |
image: ghcr.io/vulpemventures/oceand:latest | |
restart: unless-stopped | |
depends_on: | |
- oceand-db | |
environment: |
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
from binascii import unhexlify | |
import pytest | |
import wallycore as wally | |
def test_add_ins_and_outs_to_pset(): | |
pset = wally.psbt_init(2, 0, 0, 0, wally.WALLY_PSBT_INIT_PSET) | |
input0 = wally.tx_elements_input_init( | |
unhexlify('cf1b9f7fc368ac28f752b723b8e4dfd71f403caf4584512022bb6bfcad4a8c52'), | |
0, |
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
cHNldP8BAP14VwIAAAABBN2Qmn3T6cy/jQEGJl9cxGB+IBugwsw1CC1q2DLUHwLVAAAAAAD/////yayDb1R7UnJQvIsmmTE8QhJuGluejNtXb94vaZ+zNjMCAAAAAP////8qj3552e6mW/XnEWZ1X6YpsM6krO3vDveGZ/LtFbhAmgIAAAAA/////zEekteAoZ70TMwGPCVHRaejk603KMbnYy5Jr2fe+cIIBAAAAAD/////BgsCxIX7p7SZSKJuFCLhrGZc64rZS/kpPiwf6iRcBl8vLgic0CklvWPhwg0zmWITrlNQZzQtFMz21dDxzan1tENJdgMpya9yEteRM9eVEt672c/BxAaGM7G41bvBZSx4i9ICbRYAFP0ykfdz/GH//4cy3Xr5QhCO6FbhCihgK4RIxetP+2MeyaitncDimI/sGaBwdUW0mWd5QO1KCBWUsxPyYjJF6B16pogfg816DqRhe3a3T3bgwq2lYEOPAvXxVOmDmh66TaKrb6/q5qmpNEcu6H9hHgMudX2CN64EFgAU/TKR93P8Yf//hzLdevlCEI7oVuEL5gg1MydqDsU9BRCjpRgGmaY0zn9hXZhA3h5JF9R+r4oJuICyHJZLLml2Neg0t2bQ7Ya39O0GZw8uGC/L5Mp7V1ACyyjGtEjnaus3Qv75nzVKwt+dpbsYVxq+mXFsXupHcjwWABTDNM7mBH5wLuz+Gc7tBazdfHZUzQtbAdSilnOf0MEVUXW73ET4tmMrv9KtOKZhA1vCmjce+Qie+vZpQW2N54MyyDm16ymcR9ZODq+B1nMUtP+g1hc6DAP6P5PhmYwc/NNMCAClnAuTDXTme+3NNIyrSIsbdM1sMxYAFP3WWjfNXlC7FdMrdPJNIy35PwUWCkQZKjQrVWJc+kGN9w+HMcbSEzQd/BGUHnKAs2JpZ/IHCfwqCLy+ChPW6ErEaNE28g+HDpX8VDoqY47KLMHxvzqFA9QCkYWqbZZ17Sw2gykHpJZkQulIguUjh/ygs882erXH |
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
package main | |
import ( | |
"fmt" | |
"github.com/vulpemventures/go-elements/transaction" | |
) | |
func main() { | |
txhex := "0200000001016e2f6b98e5cc5a05f1bf5a25805922ff5dad273bff9e4733ed0a4c7d9ec26d430200008000ffffffff00000000000000000000000000000000000000000000000000000000000000005cd1957d555faf34ee0c8b16cddbe06c0d182abe7315cafe818b997c90a5594a088d30df9a52fb1a8d45ea26ee02e5d29ce9c4336e86fb099d1f46dfc1b1d2119a08f64cecea1114b51affdb5c817a7436d7d74e94b90210f498d9d8985d203ef848040b701b4819ccd8ce05ad1bdf5ef1d63ed8819a2e053bf4252aeeab7bb2d7abdd2708ef64019a651098bab9763de8e39293416717182bcbb18a8df8af5ecf4ce654ae020a2df27beb457b7ac47bd3aeaf66d7a28662157d0c1a92ef40da98230a0d646a220020c2b6e7c87a7f44c947ba95cf2c4c6444d32ca344780997f9d139b6a28e92f87e0bbc79e6708effb411bdb71a4bb5eebd269c2456687091df5c9ed64171002af88e098ef5885e0740c1d295824dad1c1cc89e8defdb7364bc91280892c382a372c9f70266460400d5b7661988313bce75e9bcf20af4e0d3333281635fc16714b4548b4c220020954286550d01bd1cf736717dff39a97c65fdd40bca3b280bbf18ef2acbea2c5f0a4507d49ac4605bc9aa |
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
#!/bin/bash | |
set -e | |
echo "" | |
echo "starting tdexd" | |
docker run -it -d -p 9000:9000 -p 9945:9945 --name tdexd -v $(pwd)/tdexd:/.tdex-daemon --network="resources_local" -e TDEX_NETWORK="regtest" -e TDEX_BASE_ASSET="5ac9f65c0efcc4775e0baec4ec03abdde22473cd3cf33c0419ca290e0751b225" -e TDEX_EXPLORER_ENDPOINT="http://10.10.0.17:3000" ghcr.io/tdex-network/tdexd:latest | |
echo "" |
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
import type { Browser } from "webextension-polyfill-ts"; | |
import { deepMock } from "mockzilla"; | |
import { verifyWallet } from "./app"; | |
import useMockReducer from "../reducers/use-mock-reducer"; | |
import { appReducer, appInitialState } from "../reducers"; | |
import { BrowserStorageAppRepo } from "../../../infrastructure/app/browser/browser-storage-app-repository"; | |
import { BrowserStorageWalletRepo } from "../../../infrastructure/wallet/browser/browser-storage-wallet-repository"; | |
const [browser,, mockBrowserNode] = deepMock<Browser>("browser", false); | |
jest.mock("webextension-polyfill-ts", () => ({ browser })); |
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
import useThunkReducer from '../../src/application/store/reducers/use-thunk-reducer'; | |
import { appReducer, appInitialState } from '../../src/application/store/reducers'; | |
import { createWallet } from '../../src/application/store/actions'; | |
import { MemoryStorageWalletRepo } from '../../src/infrastructure/wallet/memory/memory-storage-wallet-repository'; | |
describe('wallet', () => { | |
it('should create wallet', () => { | |
const [state, dispatch] = useThunkReducer(appReducer, appInitialState); | |
const password = 'testtest'; |
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
issuance: | |
unblinded hex: | |
0200000000016f29544961475963d1f766ff4e0329b8112b996ccf7fd6c79b35340aed616c340100008000ffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000006fc23ac000100000000000000010301018c407b189cf5cf30d69fe5a8146c0286bf786f822ffa2216abc92c306825430100000006fc23ac00001600140fe0b04334565422963f1da0d9958d7b45d3102c010ff135b4ab4b8684ae573c142b075fcba80512400e526c13ec7d3f812ec70d53010000000000000001001600140fe0b04334565422963f1da0d9958d7b45d3102c0125b251070e29ca19043cf33ccd7324e2ddab03ecc4ae0b5e77c4fc0e5cf6c95a010000000005f5d160001600140fe0b04334565422963f1da0d9958d7b45d3102c00000000 | |
blinded hex: | |
0200000001016f29544961475963d1f766ff4e0329b8112b996ccf7fd6c79b35340aed616c340100008000ffffffff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009a6426b43d7c5c13414bb489d7edf47dc2a319c781ca3bb1f05077f93ab7ba2fe0842d74b3b53bc5e13fa4b35 |
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
#!/bin/bash | |
set -e | |
# e1 is an alias for dockerized elements-cli | |
e1="docker exec 96977e46ac8b elements-cli -datadir=/config" | |
######################################## ISSUANCE ######################################## | |
#################### NEW ADDRESS #################### |
NewerOlder