Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
3 changes: 2 additions & 1 deletion contracts/compiled/parser/ctez.tz
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
(int %timestampLimit)
(big_map %assetName nat string)
(big_map %assetId string nat)
(big_map %metadata string bytes)) ;
(big_map %metadata string bytes)
(option %tmp (pair (nat %price) (nat %level) (bool %updating)))) ;
code { PUSH string "P_NOT_ROUTER" ;
PUSH string "cTez_ONLY" ;
PUSH string "cTez" ;
Expand Down
3 changes: 2 additions & 1 deletion contracts/compiled/parser/harbinger.tz
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
(int %timestampLimit)
(big_map %assetName nat string)
(big_map %assetId string nat)
(big_map %metadata string bytes)) ;
(big_map %metadata string bytes)
(option %tmp (pair (nat %price) (nat %level) (bool %updating)))) ;
code { PUSH string "P_NOT_ROUTER" ;
PUSH nat 1000000000000000000000000000000000000 ;
NIL operation ;
Expand Down
350 changes: 350 additions & 0 deletions contracts/compiled/parser/harbinger_old.tz
Original file line number Diff line number Diff line change
@@ -0,0 +1,350 @@
{ parameter
(or (or (or (set %getPrice nat) (pair %receivePrice string (pair timestamp nat)))
(or (nat %setTimestampLimit) (pair %updateAsset (string %assetName) (nat %tokenId))))
(pair %updateOracle (address %oracle) (nat %oraclePrecision) (nat %timestampLimit))) ;
storage
(pair (address %router)
(address %oracle)
(nat %oraclePrecision)
(int %timestampLimit)
(big_map %assetName nat string)
(big_map %assetId string nat)
(big_map %metadata string bytes)
(option %tmp (pair (nat %price) (nat %level) (bool %updating)))) ;
code { PUSH string "P_NOT_ROUTER" ;
PUSH string "P_OLD_PRICE_RECEIVED" ;
PUSH nat 1000000000000000000000000000000000000 ;
NIL operation ;
LAMBDA
(pair bool string)
unit
{ UNPAIR ; IF { DROP ; UNIT } { FAILWITH } } ;
LAMBDA
(pair (option (pair nat nat bool)) (pair nat nat bool))
(pair nat nat bool)
{ UNPAIR ; IF_NONE {} { SWAP ; DROP } } ;
LAMBDA
(pair (option (contract (pair string (contract (pair string (pair timestamp nat)))))) string)
(contract (pair string (contract (pair string (pair timestamp nat)))))
{ UNPAIR ; IF_NONE { FAILWITH } { SWAP ; DROP } } ;
PUSH string "XTZ-USD" ;
DIG 8 ;
UNPAIR ;
PUSH string "DONT_SEND_TEZOS" ;
PUSH mutez 0 ;
AMOUNT ;
COMPARE ;
EQ ;
PAIR ;
DUP 7 ;
SWAP ;
EXEC ;
DROP ;
IF_LEFT
{ IF_LEFT
{ DIG 6 ;
DROP ;
IF_LEFT
{ DIG 5 ;
DIG 6 ;
DIG 7 ;
DIG 8 ;
DROP 4 ;
SELF %receivePrice ;
NIL operation ;
PUSH string "P_NOT_ORACLE_CONTRACT" ;
DUP 5 ;
GET 3 ;
CONTRACT %get (pair string (contract (pair string (pair timestamp nat)))) ;
PAIR ;
DUP 7 ;
SWAP ;
EXEC ;
PUSH mutez 0 ;
DUP 4 ;
DUP 8 ;
PAIR ;
TRANSFER_TOKENS ;
CONS ;
DIG 2 ;
ITER { SWAP ;
DUP 4 ;
GET 9 ;
DIG 2 ;
PUSH string "STRING_NOT_DEFINED" ;
DUG 2 ;
GET ;
IF_NONE { FAILWITH } { SWAP ; DROP } ;
PUSH string "P_NOT_ORACLE_CONTRACT" ;
DUP 5 ;
GET 3 ;
CONTRACT %get (pair string (contract (pair string (pair timestamp nat)))) ;
PAIR ;
DUP 7 ;
SWAP ;
EXEC ;
PUSH mutez 0 ;
DUP 5 ;
DUP 4 ;
PAIR ;
TRANSFER_TOKENS ;
DUP 6 ;
DIG 2 ;
COMPARE ;
EQ ;
IF { DROP } { CONS } } ;
SWAP ;
DIG 3 ;
DIG 4 ;
DROP 3 ;
PUSH bool False ;
PUSH nat 0 ;
PUSH nat 0 ;
PAIR 3 ;
DUP 3 ;
GET 14 ;
PAIR ;
DIG 3 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ET 4 ;
INT ;
UPDATE 7 ;
SWAP ;
PAIR } } }

3 changes: 2 additions & 1 deletion contracts/compiled/parser/ubinetic.tz
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
(int %timestampLimit)
(big_map %assetName nat string)
(big_map %assetId string nat)
(big_map %metadata string bytes)) ;
(big_map %metadata string bytes)
(option %tmp (pair (nat %price) (nat %level) (bool %updating)))) ;
code { PUSH string "P_NOT_ROUTER" ;
PUSH nat 1000000000000000000000000000000000000 ;
NIL operation ;
Expand Down
3 changes: 2 additions & 1 deletion contracts/compiled/parser/ubinetic_old.tz
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
(int %timestampLimit)
(big_map %assetName nat string)
(big_map %assetId string nat)
(big_map %metadata string bytes)) ;
(big_map %metadata string bytes)
(option %tmp (pair (nat %price) (nat %level) (bool %updating)))) ;
code { PUSH string "P_NOT_ROUTER" ;
PUSH nat 1000000000000000000000000000000000000 ;
NIL operation ;
Expand Down
Loading