Skip to content
Closed
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
253 changes: 217 additions & 36 deletions contracts/contracts/escrow/src/lib.rs

Large diffs are not rendered by default.

680 changes: 517 additions & 163 deletions contracts/contracts/escrow/src/test.rs

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,25 @@
}
]
],
[
[
"CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFCT4",
{
"function": {
"contract_fn": {
"contract_address": "CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOLZM",
"function_name": "start_milestone",
"args": [
{
"u32": 1
}
]
}
},
"sub_invocations": []
}
]
],
[
[
"CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHK3M",
Expand Down Expand Up @@ -249,7 +268,7 @@
"contract": "CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFCT4",
"key": {
"ledger_key_nonce": {
"nonce": "2032731177588607455"
"nonce": "4270020994084947596"
}
},
"durability": "temporary",
Expand All @@ -269,7 +288,27 @@
"contract": "CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFCT4",
"key": {
"ledger_key_nonce": {
"nonce": "8370022561469687789"
"nonce": "4837995959683129791"
}
},
"durability": "temporary",
"val": "void"
}
},
"ext": "v0"
},
"live_until": 6311999
},
{
"entry": {
"last_modified_ledger_seq": 0,
"data": {
"contract_data": {
"ext": "v0",
"contract": "CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFCT4",
"key": {
"ledger_key_nonce": {
"nonce": "6277191135259896685"
}
},
"durability": "temporary",
Expand All @@ -289,7 +328,7 @@
"contract": "CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHK3M",
"key": {
"ledger_key_nonce": {
"nonce": "4270020994084947596"
"nonce": "2032731177588607455"
}
},
"durability": "temporary",
Expand All @@ -309,7 +348,7 @@
"contract": "CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHK3M",
"key": {
"ledger_key_nonce": {
"nonce": "4837995959683129791"
"nonce": "8370022561469687789"
}
},
"durability": "temporary",
Expand Down Expand Up @@ -419,55 +458,86 @@
"key": {
"vec": [
{
"symbol": "Milestones"
"symbol": "Milestone"
},
{
"u32": 1
}
]
},
"val": {
"map": [
{
"key": {
"symbol": "amount"
},
"val": {
"i128": "400"
}
},
{
"key": {
"symbol": "client_approved"
},
"val": {
"bool": false
}
},
{
"key": {
"symbol": "deadline"
},
"val": {
"u64": "0"
}
},
{
"key": {
"symbol": "description"
},
"val": {
"string": "Work"
}
},
{
"key": {
"symbol": "freelancer_approved"
},
"val": {
"bool": false
}
},
{
"key": {
"symbol": "id"
},
"val": {
"u32": 1
}
},
{
"key": {
"symbol": "status"
},
"val": {
"u32": 7
}
}
]
}
},
{
"key": {
"vec": [
{
"symbol": "MilestoneIds"
}
]
},
"val": {
"vec": [
{
"map": [
{
"key": {
"symbol": "amount"
},
"val": {
"i128": "400"
}
},
{
"key": {
"symbol": "deadline"
},
"val": {
"u64": "0"
}
},
{
"key": {
"symbol": "description"
},
"val": {
"string": "High Value Milestone"
}
},
{
"key": {
"symbol": "id"
},
"val": {
"u32": 1
}
},
{
"key": {
"symbol": "status"
},
"val": {
"u32": 6
}
}
]
"u32": 1
}
]
}
Expand Down
Loading