Skip to content

Commit

Permalink
Merge pull request #108 from koinos/kcs-4-updates
Browse files Browse the repository at this point in the history
Kcs 4 updates
  • Loading branch information
sgerbino authored Aug 15, 2024
2 parents beb6732 + 8844ce4 commit 190884c
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 6 deletions.
2 changes: 1 addition & 1 deletion contracts/koin/abi/koin.abi
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,5 @@
"read-only" : false
}
},
"types" : "CrcOChtrb2lub3Mvc3RhbmRhcmRzL2tjczQucHJvdG8SFWtvaW5vcy5zdGFuZGFyZHMua2NzNBoUa29pbm9zL29wdGlvbnMucHJvdG8iEAoObmFtZV9hcmd1bWVudHMiIwoLbmFtZV9yZXN1bHQSFAoFdmFsdWUYASABKAlSBXZhbHVlIhIKEHN5bWJvbF9hcmd1bWVudHMiJQoNc3ltYm9sX3Jlc3VsdBIUCgV2YWx1ZRgBIAEoCVIFdmFsdWUiFAoSZGVjaW1hbHNfYXJndW1lbnRzIicKD2RlY2ltYWxzX3Jlc3VsdBIUCgV2YWx1ZRgBIAEoDVIFdmFsdWUiGAoWdG90YWxfc3VwcGx5X2FyZ3VtZW50cyIvChN0b3RhbF9zdXBwbHlfcmVzdWx0EhgKBXZhbHVlGAEgASgEQgIwAVIFdmFsdWUiMgoUYmFsYW5jZV9vZl9hcmd1bWVudHMSGgoFb3duZXIYASABKAxCBIC1GAZSBW93bmVyIi0KEWJhbGFuY2Vfb2ZfcmVzdWx0EhgKBXZhbHVlGAEgASgEQgIwAVIFdmFsdWUiFAoSZ2V0X2luZm9fYXJndW1lbnRzIlkKD2dldF9pbmZvX3Jlc3VsdBISCgRuYW1lGAEgASgJUgRuYW1lEhYKBnN5bWJvbBgCIAEoCVIGc3ltYm9sEhoKCGRlY2ltYWxzGAMgASgNUghkZWNpbWFscyJRChNhbGxvd2FuY2VfYXJndW1lbnRzEhoKBW93bmVyGAEgASgMQgSAtRgGUgVvd25lchIeCgdzcGVuZGVyGAIgASgMQgS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xCBIC1GAZSAnRvEhgKBXZhbHVlGAIgASgEQgIwAVIFdmFsdWUiDQoLbWludF9yZXN1bHQiRAoOYnVybl9hcmd1bWVudHMSGAoEZnJvbRgBIAEoDEIEgLUYBlIEZnJvbRIYCgV2YWx1ZRgCIAEoBEICMAFSBXZhbHVlIg0KC2J1cm5fcmVzdWx0ImkKEWFwcHJvdmVfYXJndW1lbnRzEhoKBW93bmVyGAEgASgMQgSAtRgGUgVvd25lchIeCgdzcGVuZGVyGAIgASgMQgSAtRgGUgdzcGVuZGVyEhgKBXZhbHVlGAMgASgEQgIwAVIFdmFsdWUiEAoOYXBwcm92ZV9yZXN1bHQiQAoKYnVybl9ldmVudBIYCgRmcm9tGAEgASgMQgSAtRgGUgRmcm9tEhgKBXZhbHVlGAIgASgEQgIwAVIFdmFsdWUiPAoKbWludF9ldmVudBIUCgJ0bxgBIAEoDEIEgLUYBlICdG8SGAoFdmFsdWUYAiABKARCAjABUgV2YWx1ZSJuCg50cmFuc2Zlcl9ldmVudBIYCgRmcm9tGAEgASgMQgSAtRgGUgRmcm9tEhQKAnRvGAIgASgMQgSAtRgGUgJ0bxIYCgV2YWx1ZRgDIAEoBEICMAFSBXZhbHVlEhIKBG1lbW8YBCABKAlSBG1lbW8iZQoNYXBwcm92ZV9ldmVudBIaCgVvd25lchgBIAEoDEIEgLUYBlIFb3duZXISHgoHc3BlbmRlchgCIAEoDEIEgLUYBlIHc3BlbmRlchIYCgV2YWx1ZRgDIAEoBEICMAFSBXZhbHVlQkBaPmdpdGh1Yi5jb20va29pbm9zL2tvaW5vcy1wcm90by1nb2xhbmcvdjIva29pbm9zL3N0YW5kYXJkcy9rY3M0YgZwcm90bzM="
}
12 changes: 12 additions & 0 deletions contracts/koin/asconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@
"use": [
"BUILD_FOR_TESTING=0"
]
},
"testnet": {
"outFile": "build/testnet/contract.wasm",
"textFile": "build/testnet/contract.wat",
"sourceMap": true,
"optimizeLevel": 3,
"shrinkLevel": 0,
"converge": false,
"noAssert": false,
"use": [
"BUILD_FOR_TESTING=1"
]
}
},
"options": {
Expand Down
1 change: 1 addition & 0 deletions contracts/koin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"lint": "eslint --max-warnings 0 --ext ts \"assembly/**/*.ts\"",
"build:debug": "koinos-sdk-as-cli generate-contract-proto && koinos-sdk-as-cli build debug",
"build:release": "koinos-sdk-as-cli generate-contract-proto && koinos-sdk-as-cli build release",
"build:testnet": "koinos-sdk-as-cli generate-contract-proto && koinos-sdk-as-cli build testnet",
"test": "koinos-sdk-as-cli run-tests",
"integration-tests": "yarn jest",
"local-koinos-auto": "local-koinos start -i 5000",
Expand Down
1 change: 1 addition & 0 deletions contracts/pob/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"lint": "eslint --max-warnings 0 --ext ts \"assembly/**/*.ts\"",
"build:debug": "koinos-sdk-as-cli build debug",
"build:release": "koinos-sdk-as-cli build release",
"build:testnet": "koinos-sdk-as-cli build release 1",
"test": "koinos-sdk-as-cli run-tests",
"integration-tests": "yarn jest",
"local-koinos-auto": "local-koinos start -i 5000",
Expand Down
6 changes: 3 additions & 3 deletions contracts/vhp/abi/vhp.abi
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
"read-only" : true
},
"effective_balance_of": {
"argument" : "koinos.contracts.vhp.effective_balance_of_arguments",
"return" : "koinos.contracts.vhp.effective_balance_of_result",
"argument" : "vhp.effective_balance_of_arguments",
"return" : "vhp.effective_balance_of_result",
"entry-point" : "0x629f31e6",
"description" : "Checks the effective balance at an address",
"read-only" : true
Expand Down Expand Up @@ -92,5 +92,5 @@
"read-only" : false
}
},
"types" : "CrYDCiZjb250cmFjdHMvdmhwL2Fzc2VtYmx5L3Byb3RvL3ZocC5wcm90bxIDdmhwGhRrb2lub3Mvb3B0aW9ucy5wcm90byI8Ch5lZmZlY3RpdmVfYmFsYW5jZ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vcy1wcm90by1nb2xhbmcvdjIva29pbm9zL3N0YW5kYXJkcy9rY3M0YgZwcm90bzMKtgMKJmNvbnRyYWN0cy92aHAvYXNzZW1ibHkvcHJvdG8vdmhwLnByb3RvEgN2aHAaFGtvaW5vcy9vcHRpb25zLnByb3RvIjwKHmVmZmVjdGl2ZV9iYWxhbmNlX29mX2FyZ3VtZW50cxIaCgVvd25lchgBIAEoDEIEgLUYBlIFb3duZXIiNwobZWZmZWN0aXZlX2JhbGFuY2Vfb2ZfcmVzdWx0EhgKBXZhbHVlGAEgASgEQgIwAVIFdmFsdWUiJgoOYmFsYW5jZV9vYmplY3QSFAoFdmFsdWUYASABKARSBXZhbHVlIkwKDWJhbGFuY2VfZW50cnkSIQoMYmxvY2tfaGVpZ2h0GAEgASgEUgtibG9ja0hlaWdodBIYCgdiYWxhbmNlGAIgASgEUgdiYWxhbmNlInwKGGVmZmVjdGl2ZV9iYWxhbmNlX29iamVjdBInCg9jdXJyZW50X2JhbGFuY2UYASABKARSDmN1cnJlbnRCYWxhbmNlEjcKDXBhc3RfYmFsYW5jZXMYAiADKAsyEi52aHAuYmFsYW5jZV9lbnRyeVIMcGFzdEJhbGFuY2VzYgZwcm90bzM="
}
12 changes: 12 additions & 0 deletions contracts/vhp/asconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@
"use": [
"BUILD_FOR_TESTING=0"
]
},
"testnet": {
"outFile": "build/testnet/contract.wasm",
"textFile": "build/testnet/contract.wat",
"sourceMap": true,
"optimizeLevel": 3,
"shrinkLevel": 0,
"converge": false,
"noAssert": false,
"use": [
"BUILD_FOR_TESTING=1"
]
}
},
"options": {
Expand Down
9 changes: 7 additions & 2 deletions contracts/vhp/assembly/Vhp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,14 @@ namespace Detail {

export function Zone(): Uint8Array {
if (zone.length == 0) {
// 1AdzuXSpC6K9qtXdCBgD5NUpDNwHjMgrc9
zone = new Uint8Array(25);
zone.set([0x00, 0x69, 0xb8, 0x71, 0x9f, 0x8b, 0x59, 0x2a, 0xe1, 0xc3, 0xeb, 0x8d, 0xed, 0x2d, 0xd4, 0xdb, 0x7c, 0x6f, 0x91, 0x5c, 0x0c, 0xca, 0x69, 0xe5, 0x72]);
if (BUILD_FOR_TESTING) {
// 17n12ktwN79sR6ia9DDgCfmw77EgpbTyBi
zone.set([0x00, 0x4a, 0x53, 0x7f, 0x8e, 0x7d, 0x84, 0x0c, 0x14, 0xb0, 0xe9, 0x75, 0x8d, 0xcd, 0x91, 0x0c, 0xc6, 0xec, 0x42, 0xea, 0x89, 0xc7, 0x74, 0xb5, 0x1d]);
} else {
// 1AdzuXSpC6K9qtXdCBgD5NUpDNwHjMgrc9
zone.set([0x00, 0x69, 0xb8, 0x71, 0x9f, 0x8b, 0x59, 0x2a, 0xe1, 0xc3, 0xeb, 0x8d, 0xed, 0x2d, 0xd4, 0xdb, 0x7c, 0x6f, 0x91, 0x5c, 0x0c, 0xca, 0x69, 0xe5, 0x72]);
}
}

return zone;
Expand Down
1 change: 1 addition & 0 deletions contracts/vhp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"lint": "eslint --max-warnings 0 --ext ts \"assembly/**/*.ts\"",
"build:debug": "koinos-sdk-as-cli generate-contract-proto && koinos-sdk-as-cli build debug",
"build:release": "koinos-sdk-as-cli generate-contract-proto && koinos-sdk-as-cli build release",
"build:testnet": "koinos-sdk-as-cli generate-contract-proto && koinos-sdk-as-cli build testnet",
"test": "koinos-sdk-as-cli run-tests",
"integration-tests": "yarn jest",
"local-koinos-auto": "local-koinos start -i 5000",
Expand Down

0 comments on commit 190884c

Please sign in to comment.