Skip to content

Commit

Permalink
Merge pull request #88 from gfusee/feature/unified_syntax
Browse files Browse the repository at this point in the history
Refactoring to handle unified syntax and reduce SDK dependency
  • Loading branch information
gfusee authored May 31, 2024
2 parents 9ab94a2 + 4417151 commit eadca9d
Show file tree
Hide file tree
Showing 112 changed files with 10,821 additions and 1,912 deletions.
37 changes: 37 additions & 0 deletions .novax/abis/contract-with-upgrade-endpoint.abi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"buildInfo": {
"rustc": {
"version": "1.76.0-nightly",
"commitHash": "d86d65bbc19b928387f68427fcc3a0da498d8a19",
"commitDate": "2023-12-10",
"channel": "Nightly",
"short": "rustc 1.76.0-nightly (d86d65bbc 2023-12-10)"
},
"contractCrate": {
"name": "contract",
"version": "0.0.0"
},
"framework": {
"name": "multiversx-sc",
"version": "0.48.0"
}
},
"name": "ContractWithUpgradeEndpoint",
"constructor": {
"inputs": [],
"outputs": []
},
"endpoints": [
{
"name": "upgrade",
"mutability": "mutable",
"inputs": [],
"outputs": []
}
],
"esdtAttributes": [],
"hasCallback": false,
"types": {

}
}
237 changes: 228 additions & 9 deletions .novax/abis/tester-contract-deploy-return.abi.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
{
"buildInfo": {
"rustc": {
"version": "1.74.0-nightly",
"commitHash": "ec08a0337f3556212525dbf1d3b41e19bdf27621",
"commitDate": "2023-09-04",
"channel": "Nightly",
"short": "rustc 1.74.0-nightly (ec08a0337 2023-09-04)"
"version": "1.78.0",
"commitHash": "9b00956e56009bab2aa15d7bff10916599e3d6d6",
"commitDate": "2024-04-29",
"channel": "Stable",
"short": "rustc 1.78.0 (9b00956e5 2024-04-29)"
},
"contractCrate": {
"name": "tester-contract",
"version": "0.0.0"
"version": "0.0.0",
"gitVersion": "0.1.6-17-gaeef5de"
},
"framework": {
"name": "multiversx-sc",
"version": "0.43.3"
"version": "0.50.3"
}
},
"name": "TesterWithReturningDeploy",
Expand All @@ -30,6 +31,10 @@
}
]
},
"upgradeConstructor": {
"inputs": [],
"outputs": []
},
"endpoints": [
{
"name": "getSum",
Expand All @@ -52,6 +57,56 @@
],
"outputs": []
},
{
"name": "returnNftProperties",
"mutability": "mutable",
"inputs": [],
"outputs": [
{
"type": "TestTokenProperties"
}
]
},
{
"name": "returnNftEnumProperties",
"mutability": "mutable",
"inputs": [],
"outputs": [
{
"type": "TestEnumProperties"
}
]
},
{
"name": "returnNftEnumFieldsProperties",
"mutability": "mutable",
"inputs": [],
"outputs": [
{
"type": "TestEnumPropertiesWithFields"
}
]
},
{
"name": "returnFungibleBalance",
"mutability": "mutable",
"inputs": [],
"outputs": [
{
"type": "BigUint"
}
]
},
{
"name": "returnNonFungibleBalance",
"mutability": "mutable",
"inputs": [],
"outputs": [
{
"type": "BigUint"
}
]
},
{
"name": "noArgNoReturnEndpoint",
"mutability": "mutable",
Expand All @@ -78,6 +133,21 @@
}
]
},
{
"name": "returnContractAddress",
"mutability": "mutable",
"inputs": [
{
"name": "contract_address",
"type": "Address"
}
],
"outputs": [
{
"type": "Address"
}
]
},
{
"name": "returnBiguint",
"mutability": "mutable",
Expand Down Expand Up @@ -467,6 +537,34 @@
}
]
},
{
"name": "returnOptionalValueBool",
"mutability": "mutable",
"inputs": [],
"outputs": [
{
"type": "optional<bool>",
"multi_result": true
}
]
},
{
"name": "returnOptionalValueBoolArg",
"mutability": "mutable",
"inputs": [
{
"name": "arg",
"type": "optional<bool>",
"multi_arg": true
}
],
"outputs": [
{
"type": "optional<bool>",
"multi_result": true
}
]
},
{
"name": "returnMultiValueTwo",
"mutability": "mutable",
Expand All @@ -483,10 +581,76 @@
"multi_result": true
}
]
},
{
"name": "returnBigIntArg",
"mutability": "mutable",
"inputs": [
{
"name": "value",
"type": "BigInt"
}
],
"outputs": [
{
"type": "BigInt"
}
]
},
{
"name": "callAnotherContractReturnTwoU64",
"mutability": "mutable",
"inputs": [
{
"name": "address",
"type": "Address"
}
],
"outputs": [
{
"type": "u64"
},
{
"type": "u64"
}
]
},
{
"name": "asyncCallAnotherContractReturnTwoU64NoCallback",
"mutability": "mutable",
"inputs": [
{
"name": "address",
"type": "Address"
}
],
"outputs": []
},
{
"name": "asyncCallAnotherContractReturnTwoU64WithReturningCallback",
"mutability": "mutable",
"inputs": [
{
"name": "address",
"type": "Address"
}
],
"outputs": []
},
{
"name": "asyncCallAnotherContractReturnTwoU64WithNonReturningCallback",
"mutability": "mutable",
"inputs": [
{
"name": "address",
"type": "Address"
}
],
"outputs": []
}
],
"events": [],
"hasCallback": false,
"esdtAttributes": [],
"hasCallback": true,
"types": {
"CustomEnum": {
"type": "enum",
Expand Down Expand Up @@ -620,6 +784,61 @@
"type": "CustomStruct"
}
]
},
"TestEnumProperties": {
"type": "enum",
"variants": [
{
"name": "First",
"discriminant": 0
},
{
"name": "Second",
"discriminant": 1,
"fields": [
{
"name": "0",
"type": "bytes"
},
{
"name": "1",
"type": "BigUint"
}
]
}
]
},
"TestEnumPropertiesWithFields": {
"type": "enum",
"variants": [
{
"name": "First",
"discriminant": 0,
"fields": [
{
"name": "buffer_value",
"type": "bytes"
},
{
"name": "integer",
"type": "BigUint"
}
]
}
]
},
"TestTokenProperties": {
"type": "struct",
"fields": [
{
"name": "buffer",
"type": "bytes"
},
{
"name": "integer",
"type": "BigUint"
}
]
}
}
}
20 changes: 12 additions & 8 deletions .novax/abis/tester-contract.abi.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"buildInfo": {
"rustc": {
"version": "1.70.0-nightly",
"commitHash": "8a73f50d875840b8077b8ec080fa41881d7ce40d",
"commitDate": "2023-03-11",
"channel": "Nightly",
"short": "rustc 1.70.0-nightly (8a73f50d8 2023-03-11)"
"version": "1.78.0",
"commitHash": "9b00956e56009bab2aa15d7bff10916599e3d6d6",
"commitDate": "2024-04-29",
"channel": "Stable",
"short": "rustc 1.78.0 (9b00956e5 2024-04-29)"
},
"contractCrate": {
"name": "tester-contract",
"version": "0.0.0",
"gitVersion": "0.0.25-1-gb35f7e9"
"gitVersion": "0.1.6-17-gaeef5de"
},
"framework": {
"name": "multiversx-sc",
"version": "0.43.3"
"version": "0.50.3"
}
},
"name": "Tester",
Expand All @@ -27,6 +27,10 @@
],
"outputs": []
},
"upgradeConstructor": {
"inputs": [],
"outputs": []
},
"endpoints": [
{
"name": "getSum",
Expand Down Expand Up @@ -641,7 +645,7 @@
"outputs": []
}
],
"events": [],
"esdtAttributes": [],
"hasCallback": true,
"types": {
"CustomEnum": {
Expand Down
Binary file modified .novax/tester-contract.wasm
Binary file not shown.
Loading

0 comments on commit eadca9d

Please sign in to comment.