commit
5cd676fd66
3 changed files with 7 additions and 20 deletions
|
@ -1,9 +1,11 @@
|
||||||
name: Images
|
name: Container Image
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- dev
|
- main
|
||||||
|
- next
|
||||||
|
- dev
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
call-build-and-push:
|
call-build-and-push:
|
15
.github/workflows/dev.yml
vendored
15
.github/workflows/dev.yml
vendored
|
@ -1,15 +0,0 @@
|
||||||
name: Build and push the dev image
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ dev ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
call-build-and-push:
|
|
||||||
name: Trigger container build and push
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
id-token: write
|
|
||||||
packages: write
|
|
||||||
uses: ./.github/workflows/build-and-push.yml
|
|
||||||
secrets: inherit
|
|
|
@ -162,13 +162,13 @@ fn compute_transfer(
|
||||||
&(jsonrpc_result(
|
&(jsonrpc_result(
|
||||||
request.id.clone(),
|
request.id.clone(),
|
||||||
json::object! {
|
json::object! {
|
||||||
flow: flow.to_string(),
|
maxFlowValue: flow.to_decimal(),
|
||||||
final: max_distance.is_none(),
|
final: max_distance.is_none(),
|
||||||
transfers: transfers.into_iter().map(|e| json::object! {
|
transferSteps: transfers.into_iter().map(|e| json::object! {
|
||||||
from: e.from.to_checksummed_hex(),
|
from: e.from.to_checksummed_hex(),
|
||||||
to: e.to.to_checksummed_hex(),
|
to: e.to.to_checksummed_hex(),
|
||||||
token_owner: e.token.to_checksummed_hex(),
|
token_owner: e.token.to_checksummed_hex(),
|
||||||
value: e.capacity.to_string()
|
value: e.capacity.to_decimal(),
|
||||||
}).collect::<Vec<_>>(),
|
}).collect::<Vec<_>>(),
|
||||||
},
|
},
|
||||||
) + "\r\n"),
|
) + "\r\n"),
|
||||||
|
|
Loading…
Reference in a new issue