Skip to content

Commit 9c6535a

Browse files
authored
Merge pull request #5 from bridge-23/payment
add payment syste
2 parents 9666b43 + d588770 commit 9c6535a

File tree

15 files changed

+1116
-361
lines changed

15 files changed

+1116
-361
lines changed

.env

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11

22
# DFX CANISTER ENVIRONMENT VARIABLES
3-
DFX_VERSION='0.19.0'
4-
DFX_NETWORK='local'
5-
CANISTER_CANDID_PATH_NFTONBASE_BACKEND='/Users/nezovskii/development/Gate23/src/NFTonBase_backend/NFTonBase_backend.did'
6-
CANISTER_ID_NFTONBASE_FRONTEND='ctiya-peaaa-aaaaa-qaaja-cai'
7-
CANISTER_ID_NFTONBASE_BACKEND='c2lt4-zmaaa-aaaaa-qaaiq-cai'
8-
CANISTER_ID='ctiya-peaaa-aaaaa-qaaja-cai'
9-
CANISTER_CANDID_PATH='/Users/nezovskii/development/Gate23/.dfx/local/canisters/NFTonBase_frontend/assetstorage.did'
3+
DFX_VERSION='0.21.0'
4+
DFX_NETWORK='ic'
5+
CANISTER_CANDID_PATH_NFTONBASE_BACKEND='/home/sept_wolf/Ichiro/Bridge23/Gate23/src/NFTonBase_backend/NFTonBase_backend.did'
6+
CANISTER_ID_NFTONBASE_FRONTEND='tdxl2-fyaaa-aaaak-akvha-cai'
7+
CANISTER_ID_NFTONBASE_BACKEND='tkuag-tqaaa-aaaak-akvgq-cai'
8+
CANISTER_ID='tdxl2-fyaaa-aaaak-akvha-cai'
9+
CANISTER_CANDID_PATH='/home/sept_wolf/Ichiro/Bridge23/Gate23/.dfx/ic/canisters/NFTonBase_frontend/assetstorage.did'
1010
# END DFX CANISTER ENVIRONMENT VARIABLES
1111

1212
# # DFX CANISTER ENVIRONMENT VARIABLES

Cargo.lock

Lines changed: 64 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

canister_ids.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
{
22
"NFTonBase_backend": {
3-
"ic": "y7b46-xaaaa-aaaak-akyuq-cai"
3+
"ic": "tkuag-tqaaa-aaaak-akvgq-cai"
44
},
5-
"nft_minter_backend": {
6-
"ic": "em3uz-waaaa-aaaan-qmbsq-cai"
7-
},
8-
"nft_minter_frontend": {
9-
"ic": "efy7f-aiaaa-aaaan-qmbta-cai"
5+
"NFTonBase_frontend": {
6+
"ic": "tdxl2-fyaaa-aaaak-akvha-cai"
107
}
118
}

src/NFTonBase_backend/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ junobuild-utils = "0.0.1"
2020
http = "1.1.0"
2121
serde_bytes = "0.11.15"
2222
ic-stable-memory = "0.4"
23-
ic-stable-structures = "0.6.2"
23+
ic-stable-structures = "0.6.2"
24+
sha2 = "0.10.8"
25+
ic-ledger-types = "0.12.0"
Lines changed: 29 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
type HttpHeader = record { value : text; name : text };
32
// type HttpResponse = record {
43
// status : nat;
@@ -10,21 +9,21 @@ type TransformArgs = record { context : vec nat8; response : HttpResponse };
109
type ByteBuf = vec nat8;
1110

1211
type Image = record {
13-
name: text;
14-
img: vec nat8;
12+
name : text;
13+
img : vec nat8;
1514
};
1615

1716
type HttpRequest = record {
18-
method: text;
19-
url: text;
20-
headers: vec HttpHeader;
21-
body: ByteBuf;
17+
method : text;
18+
url : text;
19+
headers : vec HttpHeader;
20+
body : ByteBuf;
2221
};
2322

2423
type HttpResponse = record {
25-
status_code: nat16;
26-
headers: vec HttpHeader;
27-
body: ByteBuf;
24+
status_code : nat16;
25+
headers : vec HttpHeader;
26+
body : ByteBuf;
2827
// streaming_strategy: opt StreamingStrategy;
2928
};
3029

@@ -33,21 +32,27 @@ type Token = record {};
3332
type Func = service {};
3433

3534
type StreamingStrategy = variant {
36-
Callback: record {
37-
callback: Func;
38-
token: Token;
39-
}
35+
Callback : record {
36+
callback : Func;
37+
token : Token;
38+
};
4039
};
4140

42-
4341
service : {
44-
"upload_image": (text, blob) -> (text);
45-
"upload_data": (text, text) -> (text);
46-
"get_system_address": () -> (text);
47-
"get_evm_address": (text) -> (text);
48-
"get_base_eth_balance": (text) -> (nat64, text);
49-
"send_base_eth":(text, nat64) -> (text, text);
50-
"mint_nft": (text, text, int32) -> (text);
51-
"http_request": (HttpRequest) -> (HttpResponse) query;
42+
"upload_image" : (text, blob) -> (text);
43+
"upload_data" : (text, text) -> (text);
44+
"get_system_address" : () -> (text);
45+
"get_evm_address" : (text) -> (text);
46+
"get_base_eth_balance" : (text) -> (nat64, text);
47+
"send_base_eth" : (text, nat64) -> (text, text);
48+
"mint_nft" : (text, text, int32) -> (text);
49+
"http_request" : (HttpRequest) -> (HttpResponse) query;
5250
"transform" : (TransformArgs) -> (HttpResponse) query;
53-
}
51+
"deposit_btc" : (text) -> (text, text);
52+
"get_address": (text) -> (text);
53+
"get_btc_balance" : (text) -> (text, text);
54+
"get_usdc_balance": (text) -> (text, text);
55+
"update_btc_balance" : (text) -> (nat64, text);
56+
"transfer_btc" : (text, text, int32) -> (text, text);
57+
"withdraw_btc" : (text, text, int32) -> (text, text);
58+
};

0 commit comments

Comments
 (0)